wsdl

web service client gives: String is referenced but not defined error

Hi All, After I generated client stubs for my web service. I tried to access the web service through the client and during run time it gives the following error... java.io.IOException: Type {http://myurl_here}String is referenced but not defined. at org.apache.axis.client.Service.initService(Service.java:250) at org.apache.axis...

Using timestamps causing trouble with WSDL generation

Hi, I have some TIMESTAMP columns in my Oracle database and the JPA entities use java.sql.Timestamp to map them. Using RAD 7, I was trying to generate Web Services for my EJB methods, but it fails with the error: The class java.sql.Timestamp is defined in a java or javax package and cannot be converted into an xml schema type What...

WSDL xsd:choice to java ?

Hi, I'm parsing a WSDL which has a xsd:choice. How can I model a xsd:choice on java?, I didn't find a union class or something like that. ...

How can I make my WCF message contract show up in the imported schema?

Hi All, A client provided us with schemas and a wsdl for a service they would like developed. When I jumped on the project, there was already a service implementation in place. When I pull up the svc file in IE, it shows the normal svcutil command etc.. When I drill down and I look at the schemas being imported by the wsdl we're using, I...

Using PHP SoapClient classmap option with WSDL containing an element and complexType with the same name

I've encountered a few different WSDL files that contain an element and a complexType with the same name. For example, http://soap.search.msn.com/webservices.asmx?wsdl has two entities named "SearchResponse": In this scenario, I can't figure out how to properly map those entities to PHP classes using the SoapClient() "classmaps" option....

How to create Nullable fields/variables from WSDL instead of extra fields/variables

I am using wsdl.exe to convert a WSDL file and Types.xsd file into a C# file. The wsdl file specifies optional variables (minOccurs="0" maxOccurs="1"), and the generated .NET type handles this by created two fields - one for the variable (e.g. status) and one to let you know if it's specified (statusSpecified). Is there a way to use the...

C# WSDL proxy methods

I need to consume a SOAP web service from a C# .Net 4.0 client. I've added the WSDL as a Service Reference in VS 2008 and can now see the XML types as classes so I can construct the SOAP message. The WSDL Port is defined as an Interface and the two operations defined in the WSDL (UploadMessage and ValidateMessage) are visible methods...

How do I validate WSDLs and SOAP responses?

I am looking to build web services using SOAP. What standards should I follow for formatting WSDLs and SOAP responses and what tools are available to verify I am using the correct standardized formats? I was thinking something along the lines of W3C's HTML validator but for SOAP and WSDLs. Does any such thing exist? ...

Return a complexType class with nested arrays breaks web service, why?

I'm developing a simple web service using Eclipse, Axis1 and JBoss. The web service class looks like this: public class MyService { public ComplexClass getSomeData() { ComplexClass complex = new ComplexClass(); Children children[] = new Children[2]; children[0] = new Children(); complex.myFirstArray =...

Why can't I view the contents of my WCF service's WSDL?

when i navigate to my WCF svc page https://mywebstie.project.com/myproject/myuploadservice.svc, i hit the svc as expected but the svcutil URL it supplies uses the actual server name; not the mywebsite.project.com URL, for example. When i follow the provided link to the WSDL file, only the text https://mywebstie.project.com/myproject/myu...

WCF Serialization problems with WSDL file created by Java tools

Hi all, My team is tasked with getting several in-house developed .NET client applications to connect to some new Java web services. The Java web service is a third party, vendor supplied WSDL file that our team has a limited ability to modify/control...meaning we probably have the power to request our vendor to make slight tweaks to th...

Shape a WCF service by endpoint

I have 2 contracts (cA & cB) implemented by a single WCF service with 2 endpoints (epA & epB). This is not for security purposes, but purely for reasons of clarity/organization, I'd like to only "see" ContractA's operations when I discover the service via endpointA; and likewise, only see ContractB's operations via endpointB. I don't n...

SugarCRM over SOAP - V2

We're using Apache Axis to generate client-side stubs to communicate with SugarCRM in a Java application. As of a few days ago, we were using the WSDL file at http://.../soap.php?wsdl to generate our stubs. We found the version 2 WSDL file at http://.../services/v2/soap.php?wsdl, and out of necessity to delete relationships, we upgraded...

Is there a way to coerce Axis1 to produce document literal WSDLs and SOAP?

I use Apache Axis 1 to serve web services, which automatically converts Java objects into wsdl definitions and soap responses. However it seems that by default Axis serves rpc encoded data by default. Is there a way to coerce it into serving wrapped document literal data instead? So far the documentation has not helped me much. My servi...

How to handle minoccurs="0" when calling web services?

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 know how an element defined as minOccurs="0" is typically handled. The operation on the 3rd party service I am calling has a complexType element where all of the elements wit...

"System.Web.Services.Protocols.SoapException" error while wsdl service with php

Hello I am using PHP and nusoap library to access a WSDL service with SOAP. My syntax is correct as i have test it with another wsdl URL. But when i use my desired URL i get the following Array ( [faultcode] => soap:Server [faultstring] => System.Web.Services.Protocols.SoapException: Server was unable to process request. ---...

comparing wsdl versions

Is there a way to keep track of how a wsdl to a service has evolved over time? Right now what I do is add a service reference to a dummy project and generate a proxy. When there are any changes to the same wsdl, I add another reference to the same url and generate another proxy; then compare the generated classes in a class diagram. I do...

PHP SoapClient get gzip wsdl

My SoapClient cant open a gzipped wsdl file directly. Feel free to take a look at the WSDL your self, I think its public (https://www.ad-juster.com/api_sandbox/api/dre-api.wsdl) I tried a bunch of settings like $client = new SoapClient("https://www.ad-juster.com/api_sandbox/api/dre-api.wsdl", array('compression' => SOAP_COMPRESSION_ACC...

Are there any standards similar to WSDL but designed for Java or C/C++?

Are there any standards similar to WSDL but designed for Java or C/C++? To be clear: I am designing an offline API, not a web service. I am designing a system that allows different components to be plugged in, but for the orchestrator to know how to call it I currently allow the orchestrator to retrieve back a sort of "get features" f...

replacing an attribute at WSDL file from a Deployment plan XML

I have two files WSDL file and Deployment plan file. I am trying to replace an attribute at the WSDL file from the Deployment plan file. WSDL file <wsdl:definitions name="Project" targetNameSpace="http://xxx/yyy/project" xmlns:ns0="http://xxx/zzz"&gt; <wsdl:types> <xs:schema> ..... </sx:schema> </w...