All,
Web Service generated by wsdl2java is having "void" as return instead of
complex object. I am doing some mistake in defining array of wsdl. I have
been struggling to correct the wsdl from the past two days. I hope some one
will point me correct direction,
Context:
Migrating the simplified wsdl of existing (working) Axis 1.1 rpc/encoding
service to Axis 1.4 wrapped style web service for proof-of-concept.
Attaching rpc wsdl, doc/literal wsdl, wsdd
Thank you
Raji
/**
* MailingGroupWebService.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package wws.postagestatementwizard;
public interface MailingGroupWebService extends java.rmi.Remote {
public void openMailingGroup(wws.postagestatementwizard.user.data.UserData
uData, wws.postagestatementwizard.mailinggroup.data.MailingGroupData mgData,
wws.postagestatementwizard.data.holders.ServiceResponseHolder serviceResponse,
javax.xml.rpc.holders.StringHolder postOfficeOfMailing) throws
java.rmi.RemoteException, wws.postagestatementwizard.PostageWizardException;
}
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
name="MailGroupWizard"
targetNamespace="http://postagestatementwizard.wws"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://postagestatementwizard.wws"
xmlns:intf="http://postagestatementwizard.wws"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns2="http://data.postagestatementwizard.wws"
xmlns:tns4="http://data.mailinggroup.postagestatementwizard.wws"
xmlns:tns5="http://data.user.postagestatementwizard.wws"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema
targetNamespace="http://postagestatementwizard.wws"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOf_xsd_string">
<sequence>
<element
maxOccurs="unbounded"
minOccurs="0"
name="msg"
nillable="true"
type="xsd:string"/>
</sequence>
</complexType>
<complexType name="ArrayOf_tns2_ServiceResponse">
<sequence>
<element
maxOccurs="unbounded"
minOccurs="0"
name="serviceResponse"
nillable="true"
type="tns2:ServiceResponse"/>
</sequence>
</complexType>
<xsd:element name="PostageWizardException">
<complexType>
<sequence>
<element name="info" nillable="true" type="xsd:string"/>
<element name="message" nillable="true" type="xsd:string"/>
<element name="id" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</xsd:element>
</schema>
<schema
targetNamespace="http://data.postagestatementwizard.wws"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ServiceResponse">
<sequence>
<element name="confirmationNumber" type="xsd:long"/>
<element name="errorMessages" nillable="true" type="impl:ArrayOf_xsd_string"/>
<element name="mailingGroupID" type="xsd:long"/>
<element name="processId" type="xsd:long"/>
<element name="status" type="xsd:long"/>
<element name="warningMessages" nillable="true" type="impl:ArrayOf_xsd_string"/>
</sequence>
</complexType>
</schema>
<schema
targetNamespace="http://data.mailinggroup.postagestatementwizard.wws"
xmlns="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://data.user.postagestatementwizard.wws"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="MailingGroupData">
<sequence>
<annotation>
<documentation/>
</annotation>
<element name="customerDescription" nillable="true" type="xsd:string"/>
<element name="customerGroupID" nillable="true" type="xsd:string"/>
<element name="mailingGroupID" type="xsd:long"/>
<element name="permitNumber" nillable="true" type="xsd:string"/>
<element name="permitType" nillable="true" type="xsd:string"/>
<element name="postOfficeOfMailingZip" nillable="true" type="xsd:string"/>
<element name="mailingFacility" nillable="true" type="xsd:string"/>
<element name="presentationCategory" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<xsd:element name="openMailingGroup">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="uData" type="tns5:UserData"/>
<xsd:element name="mgData" type="tns4:MailingGroupData"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<complexType name="extentent">
<sequence>
<element name="serviceResponse" nillable="true" type="tns2:ServiceResponse"/>
<element name="postOfficeOfMailing" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<xsd:element name="MailingGroupResponse" type="tns4:extentent"/>
</schema>
<schema
targetNamespace="http://data.user.postagestatementwizard.wws"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="UserData">
<sequence>
<element name="password" nillable="true" type="xsd:string"/>
<element name="userID" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="openMailingGroupRequest">
<wsdl:part element="tns4:openMailingGroup" name="parameters"/>
</wsdl:message>
<wsdl:message name="openMailingGroupResponse">
<wsdl:part element="tns4:MailingGroupResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="PostageWizardException">
<wsdl:part element="impl:PostageWizardException" name="fault"/>
</wsdl:message>
<wsdl:portType name="MailingGroupWebService">
<wsdl:operation name="openMailingGroup">
<wsdl:input
message="impl:openMailingGroupRequest"
name="openMailingGroupRequest"/>
<wsdl:output
message="impl:openMailingGroupResponse"
name="openMailingGroupResponse"/>
<wsdl:fault message="impl:PostageWizardException" name="PostageWizardException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding
name="MailingGroupWizardSoapBinding"
type="impl:MailingGroupWebService">
<wsdlsoap:binding
style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="openMailingGroup">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="openMailingGroupRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="openMailingGroupResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="PostageWizardException">
<wsdlsoap:fault name="PostageWizardException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MailingGroupWebServiceService">
<wsdl:port
binding="impl:MailingGroupWizardSoapBinding"
name="MailingGroupWizard">
<wsdlsoap:address
location="http://localhost:9080/WizardXML/services/MailingGroupWizard"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions><?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://postagestatementwizard.wws"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://postagestatementwizard.wws"
xmlns:intf="http://postagestatementwizard.wws"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns2="http://data.postagestatementwizard.wws"
xmlns:tns4="http://data.mailinggroup.postagestatementwizard.wws"
xmlns:tns5="http://data.user.postagestatementwizard.wws"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema
targetNamespace="http://postagestatementwizard.wws"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOf_xsd_string">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="PostageWizardException">
<sequence>
<element name="info" nillable="true" type="xsd:string"/>
<element name="message" nillable="true" type="xsd:string"/>
<element name="id" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="ArrayOf_tns2_ServiceResponse">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns2:ServiceResponse[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
<schema
targetNamespace="http://data.postagestatementwizard.wws"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ServiceResponse">
<sequence>
<element name="confirmationNumber" type="xsd:long"/>
<element name="errorMessages" nillable="true" type="impl:ArrayOf_xsd_string"/>
<element name="mailingGroupID" type="xsd:long"/>
<element name="processId" type="xsd:long"/>
<element name="status" type="xsd:long"/>
<element name="warningMessages" nillable="true" type="impl:ArrayOf_xsd_string"/>
</sequence>
</complexType>
</schema>
<schema
targetNamespace="data.qualification.postagestatementwizard.wws"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="QualificationReportResponse">
<complexContent>
<extension base="tns2:ServiceResponse">
<sequence/>
</extension>
</complexContent>
</complexType>
</schema>
<schema
targetNamespace="data.postagestatement.postagestatementwizard.wws"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="PostageStatementResponse">
<complexContent>
<extension base="tns2:ServiceResponse">
<sequence>
<element name="totalPostage" type="xsd:double"/>
<element name="totalPostageDue" type="xsd:double"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="PeriodicalStatementResponse">
<complexContent>
<extension base="tns2:ServiceResponse">
<sequence>
<element name="totalPostage" type="xsd:double"/>
</sequence>
</extension>
</complexContent>
</complexType>
</schema>
<schema
targetNamespace="http://data.mailinggroup.postagestatementwizard.wws"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="CloseMailingGroupResponse">
<complexContent>
<extension base="tns2:ServiceResponse">
<sequence/>
</extension>
</complexContent>
</complexType>
<complexType name="MailingGroupResponse">
<complexContent>
<extension base="tns2:ServiceResponse">
<sequence>
<element name="postOfficeOfMailing" nillable="true" type="xsd:string"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="MailingGroupData">
<sequence>
<annotation>
<documentation/>
</annotation>
<element name="customerDescription" nillable="true" type="xsd:string"/>
<element name="customerGroupID" nillable="true" type="xsd:string"/>
<element name="mailingGroupID" type="xsd:long"/>
<element name="permitNumber" nillable="true" type="xsd:string"/>
<element name="permitType" nillable="true" type="xsd:string"/>
<element name="postOfficeOfMailingZip" nillable="true" type="xsd:string"/>
<element name="mailingFacility" nillable="true" type="xsd:string"/>
<element name="presentationCategory" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</schema>
<schema
targetNamespace="http://data.user.postagestatementwizard.wws"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="UserData">
<sequence>
<element name="password" nillable="true" type="xsd:string"/>
<element name="userID" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="openMailingGroupRequest">
<wsdl:part name="uData" type="tns5:UserData"/>
<wsdl:part name="mgData" type="tns4:MailingGroupData"/>
</wsdl:message>
<wsdl:message name="getVersionRequest"> </wsdl:message>
<wsdl:message name="getVersionResponse">
<wsdl:part name="getVersionReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="openMailingGroupResponse">
<wsdl:part name="openMailingGroupReturn" type="tns4:MailingGroupResponse"/>
</wsdl:message>
<wsdl:message name="PostageWizardException">
<wsdl:part name="fault" type="impl:PostageWizardException"/>
</wsdl:message>
<wsdl:portType name="MailingGroupWebService">
<wsdl:operation name="getVersion">
<wsdl:input message="impl:getVersionRequest" name="getVersionRequest"/>
<wsdl:output message="impl:getVersionResponse" name="getVersionResponse"/>
</wsdl:operation>
<wsdl:operation name="openMailingGroup" parameterOrder="uData mgData">
<wsdl:input
message="impl:openMailingGroupRequest"
name="openMailingGroupRequest"/>
<wsdl:output
message="impl:openMailingGroupResponse"
name="openMailingGroupResponse"/>
<wsdl:fault message="impl:PostageWizardException" name="PostageWizardException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding
name="MailingGroupWizardSoapBinding"
type="impl:MailingGroupWebService">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getVersion">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getVersionRequest">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://service.postagewizard.usps.com"
use="encoded"/>
</wsdl:input>
<wsdl:output name="getVersionResponse">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://postagestatementwizard.wws"
use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="openMailingGroup">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="openMailingGroupRequest">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://service.postagewizard.usps.com"
use="encoded"/>
</wsdl:input>
<wsdl:output name="openMailingGroupResponse">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://postagestatementwizard.wws"
use="encoded"/>
</wsdl:output>
<wsdl:fault name="PostageWizardException">
<wsdlsoap:fault name="PostageWizardException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MailingGroupWebServiceService">
<wsdl:port
binding="impl:MailingGroupWizardSoapBinding"
name="MailingGroupWizard">
<wsdlsoap:address
location="https://cat.uspspostalone.com/WizardXML/services/MailingGroupWizard"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]