wsdl

Dynamic invocation of WSDL 2.0 described service

Hi everybody, I am building a system in Java/Groovy that involves dynamic invocation of Web services. I use JAX-WS to invoke a service with a WSDL 1.1 interface, but I could not find any helpful information about how one would go about to implement DII for WSDL 2.0 descriptions. Could anyone of you point me in the right direction about...

Parsing <xs:any /> elements from WSDL documents using WSDL4j

Hello! I'm trying to parse WSDL documents using WSDL4j. I have problem parsing <xs:any> elements. For example for the following WSDL segment I can't find a way to "know" that the node under the second <s:sequence> is an <s:any/> node.. <s:element name="FindCountryAsXmlResponse"> <s:complexType> <s:sequence> ...

consume soap service with ruby and savon

I'm trying to use ruby and Savon to consume a web service. The test service is http://www.webservicex.net/WS/WSDetails.aspx?WSID=9&amp;CATID=2 require 'rubygems' require 'savon' client = Savon::Client.new "http://www.webservicex.net/stockquote.asmx?WSDL" client.get_quote do |soap| soap.body = {:symbol => "AAPL"} end Which retur...

ASP.NET WebService how to make a struct be treated as a primitive type for WSDL and serialization

This isssue may have several aspects so please read through first. Suppose that you have a stuct with a few small ints that pack well into Int64 and while you want to use your struct as a type in C# you want it to be exposed as In64 via web methods - so that WSDL has it and you retain basic REST ability (simple types make GET invocation...

Web service interoperability broken by developers incompetence?

How do you develop web services and how do you create WSDL? What do you include in WSDL? This question is based on observation that developers don't use WSDL properly. WSDL describes the service. I think that service description should include everything needed to use that service. So if I use any WS-* protocol I have to include WS-Poli...

WSDL2Java won't create all the stubs

Hello! I'm using Apache axis2 and more specifically, the wsdl2java tool to generate the stubs for a web service and create a client, given the wsdl file. When I try to generate stub classes for a paypal web service (its wsdl file is here) axis won't generate stubs for both the bindings included to the wsdl but just for the second one (...

How to get complex types from WSDL file?

I have the following wsdl file: <wsdl:types> <schema elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema"&gt; <import namespace="http:..."/> <complexType name="BaseBean"> <sequence/> </complexType> <complexType name="DateBean"> <complexContent> <extension base="impl:BaseBean"> <sequen...

How to add Types to libraries generated by wsdl2perl.pl in SOAP::WSDL

The generated library files from wsdl2perl.pl are not creating all the complex types I need to run requests through my wsdl. If I want to add a new type, say Price.pm to my type library, am I able to just add that module to the other library files? And if I do, what other files must I modify to incorporate it to my program (the element...

Java: Simple SOAP Client

Hi, I'm looking for a SOAP client for Java. Apache Axis looks very bloated to me. I don't understand why things have to be so complicated in Java. For example, in PHP, all I have to do is: <?php $global_service_wsdl='https://api.betfair.com/global/v3/BFGlobalService.wsdl'; $betfair=new SoapClient($global_service_wsdl); $params=array(...

How to generate helper classes and stub code with wsdl2php for a PHP web service?

Hi, I have a WSDL generated by WCF and now this WSDL should be used to create a PHP web service. My WSDL contains mappings to custom .NET classes (complexType) and I would need a PHP WSDL tool which can generate the equivalent PHP classes as well as the stub code (server-side generation). I read that the wsdl2php would be the right too...

WSDL location changed when EJB Web Service was deployed in WAR

When I deploy my EJB Web service in a WAR file the context of the Service changes. i.e. --http://localhost:8080/ServiceName/EJBName?wsdl Now, it has the web application context-> --http://localhost:8080/WebAppName/ServiceName?wsdl Why did this change and how do I control the URL of the Web service I'm using Glassfish3/Java6 and this is ...

undeclared namespace prefix: "" when creating stubs in java wireless toolkit 2.5.2

Extract of (simplified, edited) wsdl created by Drupal, as follows: ...

How to use concurrently different version of the same classes

Hi, I have to provide an interface to a set of web services for which I have generated the code stubs and object binding. Many of the transactions share a common object model and thus a large part of the generated code overlaps. Normally this would not be a concern as I would just re-use the same code since the wsdl would link the sam...

WSDL-Axis2 CodeGen Problem

Hello, I am having a problem sending a WS Request to a Server. It seems that the Namespace(NS) in one of the ComplexTypes of an operation types is causing an xsi:type to be spewed as part of the generated SOAP Request. Please see below for WSDL Sample: <xs:complexType name="SubscribeAppendantProductRequest"> <xs:complexContent> <xs:ex...

Describing Perl interfaces with WSDL

I've been looking at ways to add a Perl-based SOAP server to our systems. Every time I look @ the SOAP tools in Perl I'm disappointed at how much more developer overhead seems to be required than folks in the VS.net world. (And I've been looking for a long time) From reviewing other questions here, it looks like XML::Compile::SOAP see...

xsd:Import doesn't work in WSDL?

Hi, When put below wsdl into my VS2010 project I got a "Type 'urn:listing3:Phone' is not declared." error. Looks like the xsd:import doesn't work, why? <?xml version="1.0" ?> <wsdl:definitions targetNamespace="urn:listing2" xmlns:tns="urn:listing2" xmlns:listing3="urn:listing3" xmln...

.Net - web services - Stop WSDL and default help page being accessible but leave service up

Hi, I have a simple .Net web service. When I visit the /webservice.svc path in a browser .Net renders a nice help page with some sample C# and VB.Net code. How do I stop this from displaying? Also, is there any way to prevent a request for ?wsdl from returning the wsdl file? Thanks for any insight in advance. ...

PHP SOAP WSDL CALL RETURNS EMPTY RESULT

I am making a SOAP WSDL Request and get an exmpty result - no errors. The last_response is filled with: <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;S:Body&gt;&lt;ns2:getResponse xmlns:ns2="http://api.sponsoredlistings.ask.com/api/v5/"&gt;&lt;rval xmlns="http://api.sponsore...

Problem using WSDL service from Python, it is my client code or the server?

I'm trying to write a Python client for a a WSDL service. I'm using the Suds library to handle the soap messages. When I try to call the service, I get a suds exception: <rval /> not mapped to message part. If I set the retxml suds option I get XML which looks OK to me. Is the problem with the client code? Am I missing some flag which w...

Name attribute on the <wsdl:definitions> tag

I am writing a WCF service and need to control the value of the name atttribute on the wsdl:definitions tag in the generated WSDL document. The ServiceBehavior and the ServiceContract attributes do nothave any property on them that dictates the output value of the name in the definitions tag. Changing the service implementation class nam...