axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <atma...@gmail.com>
Subject Re: Help Me!!
Date Sat, 20 May 2006 12:34:41 GMT
What do you mean you can't create a client stub? Whay happens when you try?
And what do you mean you never return the soap headers? You have no headers
defined in your messages?

I did notice that you have what appears to be a typo in the name of the
return element -- it's called "tns:getBabkListResponse", but I would have
expected it to be called "tns:getBankListResponse".

But if you fix the name in the message definition, you will also have to fix
it in the schema:

           <xsd:element name="getBabkListResponse"
               type="tns:ArrayOfGetBankList">
           </xsd:element>

You also have two extraneous complex types defined. (This doesn't hurt
anything, but might be causing some confusion):

           <xsd:complexType name="getBankListResponseType">
               <xsd:sequence>
                   <xsd:element ref="tns:getBabkListResponse"></xsd:element>
               </xsd:sequence>
           </xsd:complexType>

           <xsd:complexType name="getBankListRequestType">
               <xsd:sequence>
                   <xsd:element ref="tns:getBankListRequest"></xsd:element>
               </xsd:sequence>
           </xsd:complexType>

Anne

On 5/19/06, Nicolas Guaneme <nicolas.guaneme@avisortech.com> wrote:
>
> Hello All,
>
> I have this WSDL service
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>     xmlns:tns="http://co.com.www.avisortech/MPPWebServices/"
>     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MPPWebServices"
>     targetNamespace="http://co.com.www.avisortech/MPPWebServices/">
>     <wsdl:types>
>         <xsd:schema
>             targetNamespace="http://co.com.www.avisortech/MPPWebServices/
> ">
>             <xsd:element name="getBankListRequest">
>                 <xsd:complexType>
>                     <xsd:sequence>
>                         <xsd:element name="EntityCode" type="xsd:string"
>                             minOccurs="0" maxOccurs="1">
>                         </xsd:element>
>                     </xsd:sequence>
>                 </xsd:complexType>
>             </xsd:element>
>             <xsd:complexType name="ArrayOfGetBankList">
>                 <xsd:sequence>
>                     <xsd:element name="financialInstitutionCode"
>                         type="xsd:string" minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="financialInstitutionName"
>                         type="xsd:string" minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                 </xsd:sequence>
>             </xsd:complexType>
>
>             <xsd:element name="getBabkListResponse"
>                 type="tns:ArrayOfGetBankList">
>             </xsd:element>
>
>             <xsd:complexType name="getBankListResponseType">
>                 <xsd:sequence>
>                     <xsd:element
> ref="tns:getBabkListResponse"></xsd:element>
>                 </xsd:sequence>
>             </xsd:complexType>
>
>             <xsd:complexType name="getBankListRequestType">
>                 <xsd:sequence>
>                     <xsd:element
> ref="tns:getBankListRequest"></xsd:element>
>                 </xsd:sequence>
>             </xsd:complexType>
>
>             <xsd:element name="createTransactionPaymentResponse">
>                 <xsd:complexType>
>                     <xsd:sequence>
>                         <xsd:element name="createResponse"
>
>                             type="tns:createTransactionPaymentResponseType">
>                         </xsd:element>
>                     </xsd:sequence>
>                 </xsd:complexType>
>             </xsd:element>
>             <xsd:element name="createTransactionPaymentRequest">
>                 <xsd:complexType>
>                     <xsd:sequence>
>                         <xsd:element name="createRequest"
>
>                             type="tns:createTransactionPaymentRequestType">
>                         </xsd:element>
>                     </xsd:sequence>
>                 </xsd:complexType>
>             </xsd:element>
>             <xsd:complexType
>                 name="createTransactionPaymentRequestType">
>                 <xsd:sequence>
>                     <xsd:element name="EntityCode" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="TicketId" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="SrvCode" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="PaymentDesc" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="TransValue" type="xsd:decimal"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="TransVatValue" type="xsd:decimal"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="UserType" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="Reference1" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="Reference2" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="Reference3" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="PaymentSystem" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="URLResponse" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="FICode" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                 </xsd:sequence>
>             </xsd:complexType>
>
>             <xsd:complexType
>                 name="createTransactionPaymentResponseType">
>                 <xsd:sequence>
>                     <xsd:element name="ReturnCode" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="Url" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                 </xsd:sequence>
>             </xsd:complexType>
>
>             <xsd:element name="getTransactionInformationResponse">
>                 <xsd:complexType>
>                     <xsd:sequence>
>                         <xsd:element name="getResponse"
>
> type="tns:getTransactionInformationResponseType">
>                         </xsd:element>
>                     </xsd:sequence>
>                 </xsd:complexType>
>             </xsd:element>
>             <xsd:element name="getTransactionInformationRequest">
>                 <xsd:complexType>
>                     <xsd:sequence>
>                         <xsd:element name="getRequest"
>
>                             type="tns:getTransactionInformationRequestType">
>                         </xsd:element>
>                     </xsd:sequence>
>                 </xsd:complexType>
>             </xsd:element>
>             <xsd:complexType
>                 name="getTransactionInformationRequestType">
>                 <xsd:sequence>
>                     <xsd:element name="EntityCode" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="TicketId" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                 </xsd:sequence>
>             </xsd:complexType>
>
>             <xsd:complexType
>                 name="getTransactionInformationResponseType">
>                 <xsd:sequence>
>                     <xsd:element name="TrazabilityCode"
>                         type="xsd:string" minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="TranState" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="SrvCode" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="PaymentDesc" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="TransValue" type="xsd:decimal"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="TransVatValue" type="xsd:decimal"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="Reference1" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="Reference2" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="Reference3" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="BankProcessDate" type="xsd:date"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="BankName" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                     <xsd:element name="ReturnCode" type="xsd:string"
>                         minOccurs="0" maxOccurs="1">
>                     </xsd:element>
>                 </xsd:sequence>
>             </xsd:complexType>
>
>         </xsd:schema>
>     </wsdl:types>
>     <wsdl:message name="getBankListResponse">
>         <wsdl:part name="getBankListResponse"
>             element="tns:getBabkListResponse" />
>     </wsdl:message>
>     <wsdl:message name="getBankListRequest">
>         <wsdl:part element="tns:getBankListRequest"
>             name="getBankListRequest" />
>     </wsdl:message>
>     <wsdl:message name="createTransactionPaymentResponse">
>         <wsdl:part name="createTransactionPaymentResponse"
>             element="tns:createTransactionPaymentResponse">
>         </wsdl:part>
>     </wsdl:message>
>     <wsdl:message name="createTransactionPaymentRequest">
>         <wsdl:part name="createTransactionPaymentRequest"
>             element="tns:createTransactionPaymentRequest">
>         </wsdl:part>
>     </wsdl:message>
>     <wsdl:message name="getTransactionInformationResponse">
>         <wsdl:part name="getTransactionInformationResponse"
>             element="tns:getTransactionInformationResponse">
>         </wsdl:part>
>     </wsdl:message>
>     <wsdl:message name="getTransactionInformationRequest">
>         <wsdl:part name="getTransactionInformationRequest"
>             element="tns:getTransactionInformationRequest">
>         </wsdl:part>
>     </wsdl:message>
>     <wsdl:portType name="MPPWebServices">
>         <wsdl:operation name="getBankList">
>             <wsdl:input message="tns:getBankListRequest" />
>             <wsdl:output message="tns:getBankListResponse" />
>         </wsdl:operation>
>         <wsdl:operation name="createTransactionPayment">
>             <wsdl:input
> message="tns:createTransactionPaymentRequest"></wsdl:input>
>             <wsdl:output
>                 message="tns:createTransactionPaymentResponse">
>             </wsdl:output>
>         </wsdl:operation>
>         <wsdl:operation name="getTransactionInformation">
>             <wsdl:input
>                 message="tns:getTransactionInformationRequest">
>             </wsdl:input>
>             <wsdl:output
>                 message="tns:getTransactionInformationResponse">
>             </wsdl:output>
>         </wsdl:operation>
>     </wsdl:portType>
>     <wsdl:binding name="MPPWebServicesSOAP" type="tns:MPPWebServices">
>         <soap:binding style="document"
>             transport="http://schemas.xmlsoap.org/soap/http" />
>         <wsdl:operation name="getBankList">
>             <soap:operation
>
> soapAction="http://co.com.www.avisortech/MPPWebServices/getBankList" />
>             <wsdl:input>
>                 <soap:body use="literal" />
>             </wsdl:input>
>             <wsdl:output>
>                 <soap:body use="literal" />
>             </wsdl:output>
>         </wsdl:operation>
>         <wsdl:operation name="createTransactionPayment">
>             <soap:operation
>
> soapAction="
> http://co.com.www.avisortech/MPPWebServices/createTransactionPayment"
> />
>             <wsdl:input>
>                 <soap:body use="literal" />
>             </wsdl:input>
>             <wsdl:output>
>                 <soap:body use="literal" />
>             </wsdl:output>
>         </wsdl:operation>
>         <wsdl:operation name="getTransactionInformation">
>             <soap:operation
>
> soapAction="
> http://co.com.www.avisortech/MPPWebServices/getTransactionInformation"
> />
>             <wsdl:input>
>                 <soap:body use="literal" />
>             </wsdl:input>
>             <wsdl:output>
>                 <soap:body use="literal" />
>             </wsdl:output>
>         </wsdl:operation>
>     </wsdl:binding>
>     <wsdl:service name="MPPWebServices">
>         <wsdl:port binding="tns:MPPWebServicesSOAP"
>             name="MPPWebServicesSOAP">
>             <soap:address
> location="http://localhost:8080/axis/services/MPPWebServicesSOAP" />
>         </wsdl:port>
>     </wsdl:service>
> </wsdl:definitions>
>
> I do the deploy and is OK, but I can't create the clientStub..... I try
> to consuming this web services with PHP and .NET but never return the
> soap headers with the info of elements.
> I don't know if the return is wrong...... I don't know how I must to do
> for return the elements of the response of each method.
> Please help me...
>
> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>

Mime
View raw message