You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jan Verstuyft <ja...@googlemail.com> on 2008/10/28 11:33:15 UTC

[AXIS2] - SwA from within .NET

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

Re: [AXIS2] - SwA from within .NET

Posted by Jan Verstuyft <ja...@googlemail.com>.
Thanks Adreas,

I've read the JIRA and indeed, this is the case here.



2008/10/28 Andreas Veithen <an...@gmail.com>:
> Looks like AXIS2-3373 which was fixed some time ago (probably for 1.4.1).
>
> Andreas
>
> On Tue, Oct 28, 2008 at 14:43, Jan Verstuyft
> <ja...@googlemail.com> wrote:
>> I have some more information.  it seems that the header from a .NET
>> example is giving
>> Content-Type: Multipart/Related;
>> boundary="-Mime+-KbZUcDkM0rsh4LtnfuVelM7ltuQS"; type="text/xml";
>> start="<C5...@swa.pocketsoap.com>"
>>
>> and the java header is giving:
>> Content-Type: multipart/related;
>> boundary=MIMEBoundaryurn_uuid_655D452D26B01776231225201271308;
>> type="application/soap+xml";
>> start="0.urn:uuid:655D452D26B01776231225201271309@apache.org";
>>
>> you can see that in the .NET it is Multipart/Related and in Java it is
>> multipart/related.
>>
>>
>> is there any reason why only the lowercase is allowed?
>>
>> 2008/10/28 Jan Verstuyft <ja...@googlemail.com>:
>>> 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
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [AXIS2] - SwA from within .NET

Posted by Andreas Veithen <an...@gmail.com>.
Looks like AXIS2-3373 which was fixed some time ago (probably for 1.4.1).

Andreas

On Tue, Oct 28, 2008 at 14:43, Jan Verstuyft
<ja...@googlemail.com> wrote:
> I have some more information.  it seems that the header from a .NET
> example is giving
> Content-Type: Multipart/Related;
> boundary="-Mime+-KbZUcDkM0rsh4LtnfuVelM7ltuQS"; type="text/xml";
> start="<C5...@swa.pocketsoap.com>"
>
> and the java header is giving:
> Content-Type: multipart/related;
> boundary=MIMEBoundaryurn_uuid_655D452D26B01776231225201271308;
> type="application/soap+xml";
> start="0.urn:uuid:655D452D26B01776231225201271309@apache.org";
>
> you can see that in the .NET it is Multipart/Related and in Java it is
> multipart/related.
>
>
> is there any reason why only the lowercase is allowed?
>
> 2008/10/28 Jan Verstuyft <ja...@googlemail.com>:
>> 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
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [AXIS2] - SwA from within .NET

Posted by Jan Verstuyft <ja...@googlemail.com>.
I have some more information.  it seems that the header from a .NET
example is giving
Content-Type: Multipart/Related;
boundary="-Mime+-KbZUcDkM0rsh4LtnfuVelM7ltuQS"; type="text/xml";
start="<C5...@swa.pocketsoap.com>"

and the java header is giving:
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_655D452D26B01776231225201271308;
type="application/soap+xml";
start="0.urn:uuid:655D452D26B01776231225201271309@apache.org";

you can see that in the .NET it is Multipart/Related and in Java it is
multipart/related.


is there any reason why only the lowercase is allowed?

2008/10/28 Jan Verstuyft <ja...@googlemail.com>:
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org