Hi.
Can anyone explain to me why the following request gives me an internal
server error?
I have attached the wsdl file.
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<echoString
xmlns="http://userguide.axis2.apache.org/Axis2SampleDocLit">
<echoStringParam xsi:type="xsd:string">TEST1</echoStringParam>
</echoString>
</soap:Body>
</soap:Envelope>
org.apache.axiom.om.OMException
org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265)
org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:75)
org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:222)
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76)
org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183)
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168)
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153)
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
Kind regards,
--
Jan Bauer Nielsen
Center of Knowledge Technology, Technical Knowledge Center of Denmark
Anker Engelunds Vej 1, Postboks 777, 2800 Kongens Lyngby, Denmark
Direct: (+45) 4525 7221, [EMAIL PROTECTED]
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://userguide.axis2.apache.org/Axis2SampleDocLit"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd1="http://userguide.axis2.apache.org/xsd"
xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"><wsdl:types><schema
xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://userguide.axis2.apache.org/xsd"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<complexType name="ArrayOfstring_literal">
<sequence>
<element type="string" name="string" maxOccurs="unbounded" />
</sequence>
</complexType>
<complexType name="SOAPStruct">
<all>
<element type="float" name="varFloat" />
<element type="int" name="varInt" />
<element type="string" name="varString" />
</all>
</complexType>
<element type="string" name="echoStringParam" />
<element type="int" name="echoIntParam" />
<element type="string" name="echoStringReturn" />
<element type="xsd1:ArrayOfstring_literal" name="echoStringArrayParam" />
<element type="xsd1:ArrayOfstring_literal" name="echoStringArrayReturn" />
<element type="xsd1:SOAPStruct" name="echoStructParam" />
<element type="xsd1:SOAPStruct" name="echoStructReturn" />
</schema></wsdl:types><wsdl:message name="echoStringArray"><wsdl:part
element="xsd1:echoStringArrayParam" name="part1" /></wsdl:message><wsdl:message
name="echoStringArrayResponse"><wsdl:part element="xsd1:echoStringArrayReturn"
name="part1" /></wsdl:message><wsdl:message name="echoString"><wsdl:part
element="xsd1:echoStringParam" name="part1" /></wsdl:message><wsdl:message
name="echoStringResponse"><wsdl:part element="xsd1:echoStringReturn"
name="part1" /></wsdl:message><wsdl:message name="echoStruct"><wsdl:part
element="xsd1:echoStructParam" name="part1" /></wsdl:message><wsdl:message
name="echoStructResponse"><wsdl:part element="xsd1:echoStructReturn"
name="part1" /></wsdl:message><wsdl:portType
name="Axis2SampleDocLitServicePortType"><wsdl:operation
name="echoStringArray"><wsdl:input message="tns:echoStringArray" /><wsdl:output
message="tns:echoStringArrayResponse" /></wsdl:operation><wsdl:operation
name="echoString"><wsdl:input message="tns:echoString" /><wsdl:output
message="tns:echoStringResponse" /></wsdl:operation><wsdl:operation
name="echoStruct"><wsdl:input message="tns:echoStruct" /><wsdl:output
message="tns:echoStructResponse"
/></wsdl:operation></wsdl:portType><wsdl:binding
type="tns:Axis2SampleDocLitServicePortType"
name="Axis2SampleDocLitServiceSOAP11Binding"><soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" /><wsdl:operation
name="echoStringArray"><soap:operation style="document"
soapAction="echoStringArray" /><wsdl:input><soap:body
namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit" use="literal"
/></wsdl:input><wsdl:output><soap:body
namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit" use="literal"
/></wsdl:output></wsdl:operation><wsdl:operation
name="echoString"><soap:operation style="document" soapAction="echoString"
/><wsdl:input><soap:body
namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit" use="literal"
/></wsdl:input><wsdl:output><soap:body
namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit" use="literal"
/></wsdl:output></wsdl:operation><wsdl:operation
name="echoStruct"><soap:operation style="document" soapAction="echoStruct"
/><wsdl:input><soap:body
namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit" use="literal"
/></wsdl:input><wsdl:output><soap:body
namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit" use="literal"
/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding
type="tns:Axis2SampleDocLitServicePortType"
name="Axis2SampleDocLitServiceSOAP12Binding"><soap12:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" /><wsdl:operation
name="echoStringArray"><soap12:operation style="document"
soapAction="echoStringArray" /><wsdl:input><soap12:body
namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit" use="literal"
/></wsdl:input><wsdl:output><soap12:body
namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit" use="literal"
/></wsdl:output></wsdl:operation><wsdl:operation
name="echoString"><soap12:operation style="document" soapAction="echoString"
/><wsdl:input><soap12:body
namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit" use="literal"
/></wsdl:input><wsdl:output><soap12:body
namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit" use="literal"
/></wsdl:output></wsdl:operation><wsdl:operation
name="echoStruct"><soap12:operation style="document" soapAction="echoStruct"
/><wsdl:input><soap12:body
namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit" use="literal"
/></wsdl:input><wsdl:output><soap12:body
namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit" use="literal"
/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding
type="tns:Axis2SampleDocLitServicePortType"
name="Axis2SampleDocLitServiceHttpBinding"><http:binding verb="POST"
/><wsdl:operation name="echoStringArray"><http:operation
location="echoStringArray" /><wsdl:input><mime:content type="text/xml"
/></wsdl:input><wsdl:output><mime:content type="text/xml"
/></wsdl:output></wsdl:operation><wsdl:operation
name="echoString"><http:operation location="echoString"
/><wsdl:input><mime:content type="text/xml"
/></wsdl:input><wsdl:output><mime:content type="text/xml"
/></wsdl:output></wsdl:operation><wsdl:operation
name="echoStruct"><http:operation location="echoStruct"
/><wsdl:input><mime:content type="text/xml"
/></wsdl:input><wsdl:output><mime:content type="text/xml"
/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service
name="Axis2SampleDocLitService"><wsdl:port
binding="tns:Axis2SampleDocLitServiceSOAP11Binding"
name="Axis2SampleDocLitServiceSOAP11port0"><soap:address
location="http://localhost:8080/axis2/services/Axis2SampleDocLitService"
/></wsdl:port><wsdl:port binding="tns:Axis2SampleDocLitServiceSOAP12Binding"
name="Axis2SampleDocLitServiceSOAP12port0"><soap12:address
location="http://localhost:8080/axis2/services/Axis2SampleDocLitService"
/></wsdl:port><wsdl:port binding="tns:Axis2SampleDocLitServiceHttpBinding"
name="Axis2SampleDocLitServiceHttpport0"><http:address
location="http://localhost:8080/axis2/rest/Axis2SampleDocLitService"
/></wsdl:port></wsdl:service></wsdl:definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]