Hello,

we've created a Java Webservice (within axis2 1.3) that can receive a
attachment.

we have a java client that works (created
with axis1.3)

But when I want to create a .NET client I receive the following error
on the server:
java.lang.NullPointerException
       at 
org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:156)
       at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111)
       at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:270)
       at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
       at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
       at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
       at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
       at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291)
       at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
       at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
       at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
       at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
       at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)

I've compared the two SOAP messages (see attachments) and do not see
any fundamental differences. Only the Content-type of the soap xml
message is different.

Has anyone a clue?  The .NET client is created with PocketSOAP.
Or has anyone an example of a SwA for .NET?

Kind regards

Jan Verstuyft
--MIMEBoundaryurn_uuid_599C4F77CE6BBB0F1E1225188634230
Content-Type: application/soap+xml; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-ID: <0.urn:uuid:[EMAIL PROTECTED]>

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope 
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";><soapenv:Body><ns1:askQuestion
 
xmlns:ns1="http://mail.ws.ideal.com";><ns1:partnerId>VL</ns1:partnerId><ns1:serialNo>12345678-0000001</ns1:serialNo><ns1:product>VGN-SZ1XP/C
 IT1</ns1:product><ns1:message>Hello, I think my serial is 
invalid....</ns1:message><ns1:firstName>Tom</ns1:firstName><ns1:lastName>Viaene</ns1:lastName><ns1:custEmail>[EMAIL
 
PROTECTED]</ns1:custEmail><ns1:language>English</ns1:language><ns1:fileNames>alsace.txt</ns1:fileNames></ns1:askQuestion></soapenv:Body></soapenv:Envelope>
--MIMEBoundaryurn_uuid_599C4F77CE6BBB0F1E1225188634230
Content-Type: text/plain
Content-Transfer-Encoding: binary
Content-ID: <alsace.txt>

INI||3263428|269290659|28206963-0000001|28206963|0|1|2008/08/20 
19:19:11|2009/08/20 18:19:11||testttttttttttt|Vinkenlaan 
31|||3080|Tervuren|BE||003245454545||[EMAIL 
PROTECTED]|French|tresttresttresttresttresttresttresttresttresttresttresttresttresttrestv||Italian|0|VGN-TZ21MN/N
 IT1|NOTEBOOK|European|0|FR||||||||||||||||||||||||Cher Monsieur 
testtttttt|0|0|0|1|0|1

--MIMEBoundaryurn_uuid_599C4F77CE6BBB0F1E1225188634230--
---Mime+-6QrAohDdOKQb8EAJT0jeiXukIGOz
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-ID: <[EMAIL PROTECTED]>

<S:Envelope
        xmlns:a="http://mail.ws.ideal.com";
        xmlns:Enc="http://schemas.xmlsoap.org/soap/encoding/";
        xmlns:S="http://schemas.xmlsoap.org/soap/envelope/";
        xmlns:XS="http://www.w3.org/2001/XMLSchema";
        
xmlns:XI="http://www.w3.org/2001/XMLSchema-instance";><S:Body><a:askQuestion 
S:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";><partnerId 
XI:type="XS:string">VL</partnerId><serialNo 
XI:type="XS:string">28209751-0000001</serialNo><firstName 
XI:type="XS:string">Jan</firstName><product XI:type="XS:string">VGN-SZ1XP/C 
IT1</product><language XI:type="XS:string">English</language><lastName 
XI:type="XS:string">Verstuyft</lastName><custEmail XI:type="XS:string">[EMAIL 
PROTECTED]</custEmail><message XI:type="XS:string">this is the 
message</message><fileNames XI:type="Enc:Array" Enc:arrayType="XS:string[1]"><i 
XI:type="XS:string">c:\temp\alsace.txt</i></fileNames></a:askQuestion></S:Body></S:Envelope>
---Mime+-6QrAohDdOKQb8EAJT0jeiXukIGOz
Content-Type: application/octetstream
Content-Transfer-Encoding: binary
Content-ID: <[EMAIL PROTECTED]>

INI||3263428|269290659|28206963-0000001|28206963|0|1|2008/08/20 
19:19:11|2009/08/20 18:19:11||testttttttttttt|Vinkenlaan 
31|||3080|Tervuren|BE||003245454545||[EMAIL 
PROTECTED]|French|tresttresttresttresttresttresttresttresttresttresttresttresttresttrestv||Italian|0|VGN-TZ21MN/N
 IT1|NOTEBOOK|European|0|FR||||||||||||||||||||||||Cher Monsieur 
testtttttt|0|0|0|1|0|1

---Mime+-6QrAohDdOKQb8EAJT0jeiXukIGOz--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to