c 2 « wsdl « Java Enterprise Q&A





1. Linq 2 xml: How to retrieve web methods' names from a wsdl document?    stackoverflow.com

I have a XML documents (which describes a wsdl service's interface):

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema ...

2. How to handle minoccurs="0" when calling web services?    stackoverflow.com

I have a web service I am trying to call using a mainframe integration product (DataDirect Shadow z/Services), but my question is more of a general one. I want to ...

3. wsdl to asmx webservice HELP!    stackoverflow.com

I've searched for this problem and I always get stuck on the step after you've generated a .cs file using the command "wsdl.exe myfile.wsdl /l:CS /ServerInterface" in the Microsoft Visual Studio ...

4. one-way operations in web service c#    stackoverflow.com

Dear All,, I need to consume web service and they send me WSDL. I was added it to service reference and when I called method GetDataWarehouse() in WSDL I got error.. "The one-way ...

5. add porttype to created wsdl using wcf in c# (without configuration files)    stackoverflow.com

I am trying to use a .NET WCF service in Mathematica using InstallService[!WSDL-URL!] but I do not know how to get my code to use portType elements when it generates WSDL. ...

6. Any way to stop wsdl.exe producing output for every class in a hierarchy?    stackoverflow.com

Take a simple example - I have a 'Car' class that inherits from a 'Vehicle' class (BTW I've using Vs2010 and C#). I write myself a trivial web server method ...

7. WCF 4 service responds to localhost address but not machine name    stackoverflow.com

I am building a very simple WCF 4 service to test SharePoint External content list. When I run the service, this works fine:

http://localhost:49669/Service1.svc?wsdl
But this does not:
http://machinename:49669/Service1.svc?wsdl
In the old 3.5 wcf services I ...

8. Parse Complex WSDL Parameter Information in C#    stackoverflow.com

I am attempting to parse WSDL, along the lines of the example given here. The author notes, in the comments, that the example is not capable of drilling down into ...

9. WCF: Controlling service endpoint name in self-hosted service    stackoverflow.com

I have a WCF service that's hosted in a Windows service. This service needs to run on one of the user's machines, and it will be accessed by a client application ...





10. Communication Exception : Server returned an invalid soap fault    stackoverflow.com

I'm trying to authenticate java web services from .net client and i use soap 1.2. When I run the client application i get following exception from client side says, Communication Exception : Server ...

11. Windows Service Reference not connecting to download metadata    stackoverflow.com

I have a windows service project that has a file watcher that uploads data to a database. I can update the service reference on the machine that the database is hosted ...

12. WSDL to JSON-RPC    stackoverflow.com

Hi I have a web service which supports both RPC formats - JSON and SOAP. Does someone know tools which can generate client side code for JSON based on WSDL file?

13. Creating web service by existing WSDL schema    stackoverflow.com

Unfortunality i am new to web services. I have a WSDL schema which i have to provide it as a service. So How can i do this ? Can someone please tell ...

14. Service reference type name problem    stackoverflow.com

I got a webservice that includes a property named system from reference.cs

public partial class newUser : object, System.ComponentModel.INotifyPropertyChanged {

  //...

  [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=6)]
  public system System {
    ...

15. exposing wsdl in iis under f5    stackoverflow.com

hay all. we have a wcf we are trying to expose his metadata. our network is protected in F5 hardware, when we are trying to create the client in VS 2010 we get ...

16. Calling a WCF service without generating an Assembly    stackoverflow.com

I am trying to write some code in C# that will call a WCF service on the fly by importing the WSDL, examining it and then making calls to it dynamically. The ...





17. How to read a wsdl file in c#    stackoverflow.com

What is the appropriate way to interact/read a .wsdl file in C#? As in, what objects should I be using, etc.

18. Custom WSDL for an ASMX Web Service    stackoverflow.com

Is it possible to use a custom WSDL with a .NET WebService? I would like to use a custom WSDL with my .NET WebService instead of the one generated by .NET ...

19. Nearest ancestor's xs:documentation node of an xs:element    stackoverflow.com

I have a wsdl document, an extract of which is shown below...

<xs:complexType name="CustomerNameType">
  <xs:annotation>
    <xs:documentation>Structure for customer name</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="FullName" ...

20. what is WSDL URI in WCF?    stackoverflow.com

What is WSDL? i can't find a lot of references while googling...
how can i know the WSDL URI of my WCF web service?

21. Creating FedEx Shipping Documnents using FedEx ship service WSDL    stackoverflow.com

I am in the process of integrating with the FedEx international Ship Service. But I am really stuck on one part. I am trying to create a certificate of origin using ...

22. Generate web service interface from SOAP message (without WSDL)?    stackoverflow.com

Is there any way to generate a web service interface using a SOAP message without a WSDL being provided?

23. Generate wsdl documentation    stackoverflow.com

I have some WSDL and I would like to generate a web page with the documentation with parameters, method name, method decription, etc...: Do you have some c# code to do this ...

24. How do i convert String to currency?    stackoverflow.com

i am using 2 web services:

http://www.webservicex.com/currencyconvertor.asmx?WSDL

http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso
One the second webservice i used ListOfCurrenciesByCode method and got the isoCode of currency and listed it in a dropdownlist1.DataTextField = "sISOCode"; and i get all ...

25. Do .Net WebService WSDL Complex Types Require Properties to have a Get/Set?    stackoverflow.com

I am defining a web service which calls a service library. The service library has an object called customer with a customer ID defined the following way:

public class Customer
{
   ...

26. Need some help with code for getting a response from a Web service. Can you help me connect the dots?    stackoverflow.com

Ok, its been a while since I've worked with a Web References. I need a refresher. I think I have about 80% of the code I need to get a response ...

27. wsdl to empty server implementation?    stackoverflow.com

I have a WSDL from a webservice for which I don't have the implementation. In order to create a client app, I'd like to build a dummy implementation of this WSDL. Is there ...

28. CRM 2011: Wsdl web service doesn't contain my entities    stackoverflow.com

We will soon upgrade to CRM 2011 so I'm doing some tests. The problem is that when I change my web service reference to the 2011 one, my application stops compiling. ...

29. XmlSerializer fails on getMeetingInstances method (GoToMeeting API)    stackoverflow.com

When I'm trying to call getMeetingInstances method in GoToMeeting API (only this method! all others work just fine) I get this error: System.InvalidOperationException was unhandled by user code There is an error in ...

30. WSDL: How to create an enum with C# FlagsAttribute?    stackoverflow.com

Basically, I created my WSDL and added a SimpleType with enum values: A, B, C. When I build my service with this wsdl I want the enum to be constructed with ...

31. Deseralize multiple WSDL versions to same object    stackoverflow.com

I'm consuming a webservice from another company, they have multiple versions running, each newer version has only added new fields/objects, BUT changes some of the element names. I would like the ability ...

32. SVCUTIL.EXE: Any way to separate my Commons.xsd classes? (C#)    stackoverflow.com

Basically I have the following scenario: I have 2 WSDL files:

  • User.wsdl
  • Customer.wsdl
Both of these wsdl's reference a Commons.xsd (Schema) so that they can use an Address ComplexType. Then I do svcutil.exe "User.wsdl" "Commons.xsd" to ...

33. Problem To Acces a java WebService from .net    stackoverflow.com

I have a problem to consume a web service in dao Project. The project is in 3 tiers or 3 layer (3 capas) and i need access to web service in ...

34. WSDL with linked xsds are not compiled dynamically using c#    stackoverflow.com

I have a following wsdl from a WCF service.

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions name="Service" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http:// 

35. send an undefined soap header in C#    stackoverflow.com

I have a web service implemented in java and appache axis.I want to call that service in .Net. the problem is there is a required soap header but it is not defined ...

36. Remote XML Web services using C#    stackoverflow.com

I have been tasked with creating a Remote Web service. I am asking this question to get the best approach to what I need to accomplish and see if there is ...

37. converting .NET 1.1 codes to .NET 4.0. wsdl isSpecified problem    stackoverflow.com

In .NET 1.1 while adding the web service framework creates an extra field isSpecified for optional parameters in web methods. In .NET 4.0 there is no isSpecified field for the same ...

38. c# with SOAP - problem with utf-8 encoding    stackoverflow.com

I'm using automatic conversion from wsdl to c#, everything works apart from encoding, whenever I have native characters (like '?' or 'รณ') I get '??' insted of them in string fields ('G????wny' ...

39. .NET WSDL Generation xs:choice name the Choice Binding Enums    stackoverflow.com

I am generating our Java web services WSDL and then importing it into our C# application each time I make a change. Every time this is done, the xs:choice elements ...

40. Consuming WSDL with multidimentional array with WSDL.exe fails    stackoverflow.com

I have the following in a WSDL I am consuming;

<xsd:complexType name="SomeClassType">
  <xsd:sequence>
    <xsd:element type="xsd:string" name="errorMessage" minOccurs="1" nillable="true" maxOccurs="1">     </xsd:element>
    <xsd:element ...

41. ServiceDescription not reading the secured wsdl    stackoverflow.com

I have a code in C# that basically read the passed WSDL to generate assembly dynamically and then we access all the methods and properties of that service.

/// <summary>
/// ...

42. Using a web service (WSDL) in Javascript    stackoverflow.com

I have designed a web based calculator. But I want to have this calculator run on a web service(WSDL). I'm using C# and Javascript behind the back of my website. So ...

43. WCF - Customized WDSL generation    stackoverflow.com

I spent hours trying to do some customizations in the wsdl generation, without results. I got stuck mainly because I could not find a clear sample for what I want to do ...

44. Periodic Exception in WSDL Export Extenstion    stackoverflow.com

I have a SOAP service that's been running for a little over a month now. Over the past two weeks we've had situations where the service will randomly start to generate ...

45. Generating DataContracts with exact namespace as in XSD    stackoverflow.com

We have to integrate our project with back end Oracle Platform. And this integration is via various WebServices. I have all WSDLs and XSDs for all these integrations. And I ...

46. In WCF, is there a way to omit / hide a ServiceOperation or a DataMember from the WSDL?    stackoverflow.com

I have an existing WCF service. At some point, sometimes an [OperationContract] or a [DataMember] in a data contract becomes [Obsolete]. I don't want to remove the method, for back-wards ...

47. WSDL: Error with arrays    stackoverflow.com

I have a WSDL from which I create the objects in c#

<xsd:complexType name="ArrayOfPlentysoapresponsemessage">
  <xsd:sequence>
    <xsd:element name="item" type="tns:PlentySoapResponseMessage" minOccurs="0" maxOccurs="2" nillable="true"/>
  </xsd:sequence>
 </xsd:complexType>
The resulting code is
private PlentySoapResponseMessage[] ...

48. Can params keyword be expressed via WSDL definition    stackoverflow.com

The application I am developing is exposing service metadata for a WCF service implementing following service contract:

[ServiceContract]
public interface IService
{
    [OperationContract]
    object Execute( string action, params ...

49. .Net - Consuming webservice without WSDL    stackoverflow.com

We have a new accounting system that provides webservice interface to external clients. I want to access one of the interfaces but there's no WSDL so i created the request through ...

50. Generating C#.net class from WSDL file    stackoverflow.com

I want to generate Web Service Classes (c#.net) from WSDL File. I want server side code not client side. Is there any tool or any other way available that can generate ...

51. Trouble talking to web service in C#: XmlChoiceIdentifierATtribute is not valid in Items    stackoverflow.com

There is a WSDL webservice that is out of my control that I'm having trouble with; I can interact with this service using soapUI and using Add ...

52. C# API with XSD/WSDL    stackoverflow.com

I'm used to adding a web reference in VS and building an API from there. I was handed on WSDL document and two XSD documents to build an API from. How ...

53. Confused by use of host name in WSDL file in C# Web Service    stackoverflow.com

I have created a WCF web service in C# deployed in a Windows Service EXE which is largely working the way I want. I am using it in a self-hosted manner ...

54. Problems serializing types for a .NET WCF Service: Service WSDL defines empty types in XSD    stackoverflow.com

I am writing a web service using WCF.

  1. I created data contracts.
  2. I created my service contract (interface). I defined methods (whose parameters are typed as for the data contracts).
  3. I implemented the service ...

55. How to go from wsdl SOAP request envelope in C#    stackoverflow.com

I need to invoke action on a web service, but i have no idea what the request envelope will look like (the services are attached at runtime by users). Generally I'd like ...

56. svcutil and specified fields    stackoverflow.com

I am genereating a datacontract with svcutil from a webservice.

svcutil /language:cs /noConfig /targetclientversion:Version35 /out:Generated\ProductService.cs http://xyz.com/ProductService.svc?wsdl
The fields generated looks like this:
private System.Nullable<System.DateTime> createdField;
private bool createdFieldSpecified;
How can the fields be both ...

57. generate classes from xsd schema without inheritence    stackoverflow.com

I have a series of fairly complex xsd schema files and I would like to create c# classes out of them. I use xsd.exe in Visual Studio 8 and classes are ...

58. .NET connecting to AXIS Service. Methods don't have params or Datatypes    stackoverflow.com

I got a few problems using the AXIS Service Reference from my .NET Project. I simply added the reference today int VS2010, but the provided Method do all have no return ...

59. Create objects out of wsdl in .NET    stackoverflow.com

I'm originally Java developer, still baby stepping in .Net so please don't get take my question as a stupid one. I'm asked to use a pre-done Web Services. The Resources that ...

60. WCF FlatWSDL - Where do you stick the necessary code if your host is IIS?    stackoverflow.com

Basically, looking into the solutions to get a FlatWSDL, I found the following:

The WCF Extras looks interesting, but might be too much for what I need (which ...

61. Generating a Web service from a WSDL c#    stackoverflow.com

now i am working with fedex webservice. they did not provide any webservice url like http://hostServer/WebserviceRoot/WebServiceName.asmx rather they provide a wsdl file. so please guide me how can i ...

62. WSDL.exe not round-trip?    stackoverflow.com

My client has specified a WSDL file as contract for a web service that I have to implement. (It really must be that WSDL file, because it has been communicated already ...

63. WCF From Class Library - hosting in IIS and wsdl generation    stackoverflow.com

Allmost all day today I am trying to research on WCF and one of my aim was to create a WCF service manually (or almost so). Based on few articles on web ...

64. Wrapping Old Request/response without WSDL using WCF    stackoverflow.com

I have a service that takes request like below and give reponse in same like below. it doesn't expose any wsdl . Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" >
   <soapenv:Body>
    ...

65. change wsdl to set time pattern    stackoverflow.com

I have a asmx web service I created in c# which returns a DateTime value in one method. In WSDL, this value is assigned to a time type. The client is ...

66. Endpoint reference for the Operation not found error    stackoverflow.com

I used this wsdl file : http://ihexds.nist.gov:9080/tf6/services/xdsrepositoryb?wsdl to generate a proxy C# code file using wsdl.exe. Exact command is

"wsdl /o:D:\NIST_stuff /l:CS /protocol:SOAP12 http://ihexds.nist.gov:9080/tf6/services/xdsrepositoryb?wsdl"
Now, I ...

67. WCF Hostname in wsdl and svc page    stackoverflow.com

when i deploy my WCF service, the wsdl shows up with import http://hostname/servicename/xsd how can i make it have IP address instead of the host name. same with the wsdl url that ...

68. Is Sales force WSDL specific to user or can be use for user    stackoverflow.com

I am creating an application to export data in sales force where user enter their username password and security token. So on WSDL will work for all or every user have ...

69. How to handle webservice without WSDL with C#?    stackoverflow.com

My application(.NET 4.0) needs to integrate with a webservice. If the webservice did have a WSDL it would be easy to generate proxy class with WCF but this is not possible ...

70. Trouble connecting to WSDL    stackoverflow.com

I have been given an SDK that uses a WSDL file to connect to a web service. I was given sample code in the README along with step by step ...

71. svcutil.exe XmlElementAttribute Form=Unqualified attribute not generated    stackoverflow.com

I am using svcutil to generate a proxy for a wsdl file. Although when I view the .CS file i notice that some of the elements do not have the [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified decoration. Even though ...

72. Dynamically change the namespace SoapTypeAttribute    stackoverflow.com

I have a problem with service references visual studio. I have a client who gives me a WSDL file to work with php. I made a reference to the service of his ClassLibrary ...

73. calling a webservice and deserializing soap without a wsdl    stackoverflow.com

I have a vendor who doesn't seem to have a wsdl or is unwilling or doesn't know how to provide it. They have a number of web services (technically they are ...

74. how to generate wsdl with SvcUtil?    stackoverflow.com

Is it possible to generate wsdl with use of SvcUtil or any other tool. I know I can view wsdl in browser while running the service but I need to have ...

75. Consuming wsdl using c# but getting error: "SOAP header To was not understood "    stackoverflow.com

I am consuming wsdl using c# and I'm geting back the following error "SOAP header To was not understood". What is causing this problem and how do I solve it?


Thanks for your response ...

76. How to Decode Live MPEG-4 stream to convert an Iframe to a JPEG image    stackoverflow.com

I have WebCam, But its not pure Ip cam, There is some encoder connected with it!
So I m trying to get stream from it, Cam's producers has WSDLs so in code ...

77. reading a WSDL file which is in XML format    stackoverflow.com

I am attempting to read a WSDL page, similar to this http://schemas.xmlsoap.org/wsdl/ I am trying to get the operations, data types, input and output information and trying to do ...

78. Upload image from C# program to SAP WSDL Web Service    stackoverflow.com

I would like to develop a C# app that uploads binary files (pdf/jpg) to an (SAP) WSDL WebService. What datatype should I use for this. Does someone has some examples?

79. WCF WSDL only offers complex types / methods    stackoverflow.com

I've found my way to wcf + wsdl. It works great in a first example with gSOAP and axis2. But I'm also faced with one issue: When I look at my wsdl, ...

80. WSDL and XSD List declaration    stackoverflow.com

Today I have the folowwing xsd declaration that is generated to Array

<xs:element name="SubNodes" type="Node" minOccurs="0" maxOccurs="unbounded"/>
How can I do something that will be generated to List<> ? (Using c#) Update: I've tried
<xs:simpleType name="SubNodes">
 ...

81. Using wsdl in WCF-custom adapter    stackoverflow.com

I have recieve location that uses WCF-Custom adapter with basicHttpBinding. Previosly in behainor/serviceMetadata/externalMetadata I used URL of WCF-service. Now I want to use simple wsdl file, that can be found on ...

82. How can I generate the WSDL file from a Remoting server?    stackoverflow.com

I am a newbie in developing web services and client server applications, and I am having troubles in understanding how is the WSDL file generated from a c# web service. I need ...

83. How to implement a Contract-First    stackoverflow.com

I am doing some work with a 3rd party supplier who provide data via a web-push. They state that their web-push relies on a contract-first web service, and they have made a ...

84. Converting WSDL to C# classes    stackoverflow.com

Converting WSDL to C# classes using microsoft net wsdl.exe tool but the tool is unable to convert the following part of the WSDL file. Any pointers in the right direction greatly ...

85. C# Service Reference Java -> C#    stackoverflow.com

First let me say that this is a less then ideal situation. I do not possess a copy of the original WSDL to identify what changed; I'm also working with ...

86. Multiple Webservices With Common Operations and Types    stackoverflow.com

I have received many WSDLs that have common operations (login, logout, insert, update etc) and common types (request, response, connect fault, data container). The differences that i found are target namespace ...

87. FaultException with SlSvcUtil generated code    stackoverflow.com

I have a WebService with following wsdl file:

<?xml version='1.0' encoding='UTF-8'?><wsdl:definitions name="BBAppWebAccessService" targetNamespace="com.test" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="com.test" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <wsdl:types>
  <xs:schema elementFormDefault="unqualified" targetNamespace="com.test" version="1.0" xmlns:tns="com.test" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="getPOI" type="tns:getPOI" />
  ...

88. Consuming Mahout (Java) WSDL in C# with string[][]    stackoverflow.com

I am trying to consume a WSDL file from C#. The WSDL file originates from Mahout which is written in Java. This is the error message: Cannot assign object of type ...

89. WebService asmx error: Could not establish connection to network    stackoverflow.com

I am a WebService asmx in c# with two methods. I was published this service on external server on port 8088, for connect to this service in firewall i made port ...