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 > > > ***************************************************************** > > > > My WSDL looks like this: > > > ***************************************************************** > > <?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 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 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> > > > ***************************************************************** > > > > I build the client using following: > > java -cp > > > C:\ApacheSF\axis2-1.3\lib\axis2-codegen-1.3.jar;C:\ApacheSF\axis2-1.3\lib\axis2-kernel-1.3.jar;C:\ApacheSF\axis2-1.3\lib\wsdl4j-1.6.2.jar;C:\ApacheSF\axis2-1.3\lib\commons-logging-1.1.jar;C:\ApacheSF\axis2-1.3\lib\axiom-api-1.2.5.jar;C:\ApacheSF\axis2-1.3\lib\neethi-2.0.2.jar;C:\ApacheSF\axis2-1.3\lib\XmlSchema-1.3.2.jar;C:\ApacheSF\axis2-1.3\lib\axis2-adb-codegen-1.3.jar;C:\ApacheSF\axis2-1.3\lib\axis2-adb-1.3.jar > > org.apache.axis2.wsdl.WSDL2Java -sp -o . -uri > > http://localhost:8080/services/services/StompHub?wsdl > > > > I have tried the without the "-sp" option above and had the exactly same > > error. > > > > I use the generated build.xml and run "ant jar.client" to generate the jar > > file for my client application. > > > > My SOAP Response looks like this: > > > ***************************************************************** > > <?xml version='1.0' encoding='utf-8'?> > > > > <soapenv:Body> > > > > <ns:return > > > type="com.ens.stomp.transport.adapters.inbound.webservices.stomphub.StompHubResponse"> > > <ns:responseCode>100</ns:responseCode> > > > > <ns:responseMessage>Success</ns:responseMessage> > > </ns:return> > > </ns:transmitResponse> > > </soapenv:Body> > > </soapenv:Envelope> > > > > > ***************************************************************** > > > > Do you see anything wrong? If I do not deploy the WSDL and use the > "default > > axis generated" WSDL to build the client src/jar files everything works > > fine. > > > > TIA, > > -- MK > > > > > > ________________________________ > > Be a better Heartthrob. Get better relationship answers from someone who > > knows. > > Yahoo! Answers - Check it out. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > ________________________________ > Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
