wsdl

Programming against WSDL without access to actual webservice

I'm going to use C# to read data from a few webservices. I've done that many times before, but those times I've had direct access to the webservices from my development machine. In this project I've just been sent a .wsdl file, and a couple of .xsd files for the webservice they have in their local intranet. I've seen that I can use "Ad...

[PHP, SOAP] How do I pass "simpleContent" type into SOAP using Nusoap library

I am having trouble trying to pass an array of data to a Nusoap client request to a WSDL server. The spec is a mixture of attribute values and simpleContent values. The WDSL spec looks something like this: <s:complexType name="RequestMessage"> <s:sequence> <s:element minOccurs="0" name="Address" type="s0:MessageAddress"/> <s:...

Can a WCF data contract be recursive? For example a binary tree? Is there a difference with ASMX services in supporting recursive data structures?

In SOA I believe that the wsdl does not support recursive data types but I saw some examples where the proxy actually works. Anybody knows more about this? ...

What are tools and best practices for testing web services?

I'm about to start work on a large project that will involve providing a significant number of web services. We'll be using the Java platform, so, of course, we'll be making heavy use of JUnit, Hudson, etc. (although I'm not sure that matters at all.) We're looking for a set of best practices and/or tools for testing the web services. ...

Changing WSDL url: from ?wsdl to .wsdl

Hello, I have a java web service deployed on JBoss Server 4.2.3 GA The generated wsdl uses "?" There are clients in .NET who are accessing the WSDL on their side. Earlier the clients used to get like ".wsdl" to access the web service. Now they want the same .wsdl instead of ?wsdl. Kindly suggest how to redirect or change some configu...

Mono wsdl utility fails to process eBay's WSDL file for their SOAP API

I'm getting this error from Mono's wsdl utility while trying to process eBay's WSDL file - ( http://developer.ebay.com/webservices/latest/eBaySvc.wsdl ) $ wsdl eBaySvc.wsdl Web Services Description Language Utility Mono Framework v2.0.50727.1433 Error: XmlSchema error: Ambiguous element label which is contained by -any- particle was d...

How declare WSDL for PHP function that returns multiple TYPES?

Hi, I'm writing a PHP web service and one function. I want to set up a web service in PHP. I need to generate the WSDL description for this web service so it's accessible from I.e. visual studio. It takes documents / search strings as inputs and recommends similar documents as output. I return an array with a first element resultCode...

SVCUtil or WSDL batch processing

I was given a set of 170 WSDL files which I need to convert to C# class files. Is there any way to batch process this? ...

Fix non-standard web serverice port on contractRef and docRef

My problem is closely related to this one: http://stackoverflow.com/questions/640641/how-can-i-use-net-web-services-from-non-standard-ports. My web service runs behind a port-forwarding firewall, so the port numbers reported in the WSDL document contain the internal high-numbered port. I wrote a SoapExtensionReflector class which is ab...

Returning An Array of Objects in PHP Web Service

Hi, I want to return an array of article objects in a PHP web service, using nuSOAP v 1.114. This is how I set up the WSDL: $server->wsdl->addComplexType( 'ArticleType', 'complexType', 'struct', 'all', '', array('articleId' => array('name'=>'articleId', 'type'=>'xsd:int'), 'heading' => array('name'=>'heading', 'type'=>'xsd:string'...

Error Consuming a RPC/Encoded SOAP web service in .NET

I am receiving the following error when calling a web service method. Cannot assign object of type System.Xml.XmlNode[] to an object of type System.String. The web service is a PHP service. I created my proxy class using wsdl.exe from the wsdl document defined here - http://webservice.intelecast.com.au/traffic/PublicSoap/server.php?wsd...

Classes in different sub-namespaces all appear at top level in WSDL

I'm creating a web service with a variety of classes, many of which can contain references to other classes. Sometimes these "sub classes" have the same name (e.g. Customer and Customer), but are actually different, so I've placed these in different namespaces (e.g. MyRoot.Sub1, MyRoot.Sub2, etc.) When I build the service, the generate...

How should I compensate for a bad WSDL?

I've come across several examples of SOAP-based web services where automated tooling fails to build a client that works. Investigating these examples leads me to believe that the WSDL the service uses to describe itself doesn't quite match the service that's being provided. Maybe a wrong type somewhere, a different data structure - some...

Unable to generate a temporary class (result=1). CS0266

I am getting this error only on one test server but the code works on other servers as well as my dev machine. Unable to generate a temporary class (result=1). error CS0266: Cannot implicitly convert type 'xxx.xxx.xxx.xxx.MessageHeaderMessageId?' to 'xxx.xxx.xxx.xxx.MessageHeaderxxxCode?'. An explicit conversion exists (are yo...

Schema First WCF Development

It is well-known how to create a "contract first" WCF service where the first step is to define the ServiceContracts and DataContracts. How should one approach WCF development if one has the "schema first". In other words, an XSD schema has been independently developed. The service may not deviate from the schema that is already defined...

.NET: Can you manually specify which types to include in autogenerated WSDL?

Is it possible to make the auto-generated WSDL for a .NET web service include descriptions for certain data types if no web method returns that data type of takes that data type as a parameter? I could just include a dummy webmethod that never gets called, but I'm looking for a less hacky way. Thanks! Mike ...

Android WSDL/SOAP service client

Hello everyone! I have some web services that uses WSDL/SOAP for communication. Specifically, I am using PHP and Nusoap to make them. How can I use these web services on Android? I am going to get a new Android phone soon, so I need to know. It is easy to do it with Windows Mobile and Visual Studio. Thanks ...

Using Java Webservice in .NET

I am working on integrating a .NET application with a Servlet based Java application called Hermes2 (H2O). The Java application exposes several Web services, and I am trying to create Web References to these in Visual Studio 2008. However this only results in an empty proxy, commented with the error message: "CODEGEN: The operation bindi...

Sharepoint ?wsdl does not return WSDL file, returns the normal page instead

Try this URL: http://sharepoint.iceweb.com/sites/demo/default.aspx?wsdl (user: [email protected], pass: demo) As far as I remember this used to return the WSDL file for this, but it just returns the normal page instead. How do I get the WSDL for a Sharepoint service? I'm actually looking for the WSDL for the Sharepoint 2007 List serv...

WSDL handling practices for external service

I have a project where it's dependent on Oracle Hosted web services (not WCF). I have a copy of the WSDLs for the services and their correlated XSDs. What is the proper way of generating the proxies and datacontract assembly for this? I started with XSD.exe /c /language:CS user.xsd For each of my xsds. This generate a bunch of class...