Hi Anne,

Any thoughts/ideas on this one?

Thanks,
-- MK

----- Original Message ----
From: M K <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, October 15, 2007 10:01:46 AM
Subject: Re: Error: Unexpected subelement responseCode

Ok. The wsdl does have the attribute set to "qualified". Here is my wsdl again.

<?xml version="1.0" encoding="UTF-8"?>

    <wsdl:documentation>StompHub</wsdl:documentation>
    <wsdl:types>
        
            <xs:complexType
 name="StompCredentials">
                <xs:sequence>
                    <xs:element name="orgnaizationId" nillable="false" 
type="xs:string"/>
                    <xs:element name="password" nillable="false" 
type="xs:string"/>
                    <xs:element name="username" nillable="false" 
type="xs:string"/>
                </xs:sequence>
            </xs:complexType>
       
 </xs:schema>
        
            <xs:element name="transmit">
                <xs:complexType>
                   
 <xs:sequence>
                        <xs:element name="request" nillable="false" 
type="ns2:StompHubRequest"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="transmitResponse">
                <xs:complexType>
                   
 <xs:sequence>
                        <xs:element name="return" nillable="false" 
type="ns2:StompHubResponse"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
        
            http://inbound.adapters.transport.stomp.ens.com/xsd"/>
            <xs:complexType name="StompHubRequest">
               
 <xs:sequence>
                    <xs:element minOccurs="1" name="credentials" 
nillable="false" type="ns0:StompCredentials"/>
                    <xs:element minOccurs="0" name="payerCredentials" 
nillable="true" type="ax21:StompHubPayerCredentials"/>
                    <xs:element minOccurs="0" name="payloadData" 
nillable="true" type="xs:string"/>
                    <xs:element minOccurs="1" name="routing" nillable="false"
 type="ax21:StompHubRouting"/>
                </xs:sequence>
            </xs:complexType>
            <xs:complexType name="StompHubPayerCredentials">
                <xs:sequence>
                    <xs:element minOccurs="0" name="password" nillable="true" 
type="xs:string"/>
                    <xs:element minOccurs="0" name="submitterId" nillable="true"
 type="xs:string"/>
                    <xs:element minOccurs="0" name="userid" nillable="true" 
type="xs:string"/>
                </xs:sequence>
            </xs:complexType>
            <xs:complexType name="StompHubRouting">
                <xs:sequence>
                    <xs:element name="payerId" nillable="false" 
type="xs:string"/>
                   
 <xs:element name="transactionType" nillable="false" type="xs:string"/>
                </xs:sequence>
            </xs:complexType>
            <xs:complexType name="StompHubResponse">
                <xs:sequence>
                    <xs:element minOccurs="0" name="responseCode" 
nillable="true" type="xs:string"/>
                    <xs:element minOccurs="0" name="responseMessage" 
nillable="true"
 type="xs:string"/>
                    <xs:element maxOccurs="unbounded" minOccurs="0" 
name="responsePayload" nillable="true" type="ax21:StompHubResponsePayload"/>
                </xs:sequence>
            </xs:complexType>
            <xs:complexType name="StompHubResponsePayload">
                <xs:sequence>
                    <xs:element name="payloadData" nillable="false"
 type="xs:string"/>
                    <xs:element name="transactionType" nillable="false" 
type="xs:string"/>
                </xs:sequence>
            </xs:complexType>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="transmitRequest">
        <wsdl:part name="parameters" element="ns1:transmit"/>
    </wsdl:message>
    <wsdl:message name="transmitResponse">
        <wsdl:part name="parameters" element="ns1:transmitResponse"/>
   
 </wsdl:message>
    <wsdl:portType name="StompHubPortType">
        <wsdl:operation name="transmit">
            <wsdl:input message="ns1:transmitRequest" 
wsaw:Action="urn:transmit"/>
            <wsdl:output message="ns1:transmitResponse" 
wsaw:Action="urn:transmitResponse"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="StompHubSOAP11Binding" type="ns1:StompHubPortType">
        
       
 <wsdl:operation name="transmit">
            <soap:operation soapAction="urn:transmit" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding
 name="StompHubSOAP12Binding" type="ns1:StompHubPortType">
        
        <wsdl:operation name="transmit">
            <soap12:operation soapAction="urn:transmit" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
           
 <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="StompHubHttpBinding" type="ns1:StompHubPortType">
        <http:binding verb="POST"/>
        <wsdl:operation name="transmit">
            <http:operation location="StompHub/transmit"/>
            <wsdl:input>
                <mime:content type="text/xml"
 part="transmit"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="transmit"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="StompHub">
        <wsdl:port name="StompHubSOAP11port_http" 
binding="ns1:StompHubSOAP11Binding">
            http://localhost:8080/services/services/StompHub"/>
        </wsdl:port>
        <wsdl:port name="StompHubSOAP12port_http" 
binding="ns1:StompHubSOAP12Binding">
            http://localhost:8080/services/services/StompHub"/>
        </wsdl:port>
        <wsdl:port name="StompHubHttpport" binding="ns1:StompHubHttpBinding">
            http://localhost:8080/services/services/StompHub"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

Thanks,
-- MK
----- Original Message ----
From: Anne Thomas Manes <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, October 13, 2007 10:42:48 AM
Subject: Re: Error: Unexpected subelement responseCode

This attribute would be in the schema in the WSDL file -- not in the
services.xml file.

On 10/11/07, M K <[EMAIL PROTECTED]> wrote:
>
> No, the services.xml does not have elementFormDefault="qualified".
 Here is
> my services.xml:
>
> <service name="StompHub" scope="application">
>     <description>
>         Stomp Hub Service
>     </description>
>     <messageReceivers>
>         <messageReceiver
>             mep="http://www.w3.org/2004/08/wsdl/in-only";
>
> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
>         <messageReceiver
>             mep="http://www.w3.org/2004/08/wsdl/in-out";
>
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>     </messageReceivers>
>    
 <parameter name="ServiceClass">
>
>
 com.ens.stomp.transport.adapters.inbound.webservices.stomphub.StompHubServices
>     </parameter>
> </service>
>
> Thanks,
> -- MK
>
>
>
> ----- Original Message ----
> From: Anne Thomas Manes <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Thursday, October 11, 2007 9:57:55 AM
> Subject: Re: Error: Unexpected subelement responseCode
>
>
> Your schema statements don't appear in the WSDL you posted -- do they
> specify elementFormDefault="qualified"?
>
> Anne
>
> On 10/10/07, M K <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
>
 >
> > I am using axis2 1.3 and deploy me service on JBOSS 4.0.5. I am
 getting
> > following error when I run my client:
> >
> *****************************************************************
> > org.apache.axis2.AxisFault:
> > org.apache.axis2.databinding.ADBException: Unexpected
> > subelement responseCode
> >     at
> > org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> >     at
> >
>
 
com.ens.stomp.transport.adapters.inbound.webservices.stomphub.StompHubStub.fromOM(StompHubStub.java:5270)
> >     at
> >
>
 
com.ens.stomp.transport.adapters.inbound.webservices.stomphub.StompHubStub.transmit(StompHubStub.java:180)
> >     at
> >
>
 
webservice.clients.StompHubClientUsingStubsWithWSDL.main(StompHubClientUsingStubsWithWSDL.java:35)
> > Caused by: java.lang.Exception:
> > org.apache.axis2.databinding.ADBException: Unexpected
> > subelement responseCode
> >     at
> >
>
 
com.ens.stomp.transport.adapters.inbound.webservices.stomphub.StompHubStub$StompHubResponse$Factory.parse(StompHubStub.java:4491)
> >     at
> >
>
 
com.ens.stomp.transport.adapters.inbound.webservices.stomphub.StompHubStub$TransmitResponse$Factory.parse(StompHubStub.java:789)
> >     at
> >
>
 
com.ens.stomp.transport.adapters.inbound.webservices.stomphub.StompHubStub.fromOM(StompHubStub.java:5264)
> >     ... 2 more
> > Caused by: org.apache.axis2.databinding.ADBException:
> > Unexpected subelement responseCode
> >     at
> >
>
 
com.ens.stomp.transport.adapters.inbound.webservices.stomphub.StompHubStub$StompHubResponse$Factory.parse(StompHubStub.java:4485)
> >     ... 4 more
> >






      Yahoo! oneSearch: Finally,  mobile search 
that gives answers, not web links. 






__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to