I am using also OPC XML-DA and I would say that this is a wrong implementation of the OPC-XML DA Server!
Try to use TCP Monitor to snif the HTTP traffic and If you are sure that the returned packet is GetStatusReturn instead of GetStatusResult, try to change OPC XML-DA server, to test your code:
Here is another OPC XML-DA server address that works fine :

http://opcxml.dnsalias.org:8080/XmlDaSampleServer/Service.asmx

Fady 
----- Original Message -----
From: Sami Lakka
Sent: Thursday, September 16, 2004 2:06 PM
Subject: Problems with wrongly named return values and wsdl2java

Hi,

 

I generate java classes from my wsdl using wsdl2java with following options:

--server-side  --skeletonDeploy true.

 

According to my wsdl I should get following response from my service:

<soapEnv:body>

               <GetStatusResult …>

               …

</soapEnv:body>

 

But when I make a call to my web service I get following response:

<soapEnv:body>

               <GetStatusReturn …>

               …

</soapEnv:body>

 

The elements inside GetStatusReturn are named correctly. I’m using document type service.

 

My WSDL (snippet)

 

<s:element name="GetStatusResponse">

        <s:complexType>

          <s:sequence>

            <s:element minOccurs="0" maxOccurs="1" name="GetStatusResult" type="s0:ReplyBase" />

            <s:element minOccurs="0" maxOccurs="1" name="Status" type="s0:ServerStatus" />

          </s:sequence>

</s:complexType>

 

And the generated code for the _GetStatusResponse class has following serialization (snippet):

 

typeDesc.setXmlType(new javax.xml.namespace.QName("http://opcfoundation.org/webservices/XMLDA/1.0/", ">GetStatusResponse"));         

org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();

elemField.setFieldName("getStatusResult");

 

Reply via email to