Web service made with Nusoap in PHP. I can’t access in Java

Asked

Viewed 332 times

1

I developed a Webservice in PHP, using the Nusoap library. Webservice is already hosted and working. When I develop a client using PHP, whether using Nusoap or using the native PHP Soap class, I can use Webservice without problems. But when I try to use the webservice in a java client (via wsdl), I get the following error message:

com.sun.xml.internal.Ws.streaming.Xmlstreamreaderexception: XML tag unexpected: expected {}send: {http://schemas.xmlsoap.org/soap/envelope/}send

I’m already racking my brain looking for a solution, but in case anyone can give me any clues, I’d appreciate it.

  • 1

    If I’m not mistaken, the exception has been translated into Portuguese. It is better that it is exactly as shown in the log, as it is easier to find related situations on the Web.

  • You can consume this webservice using the Soapui? Soapui is made entirely in Java. See if you can. and post the result for us.

1 answer

4

Your original error should be within these lines:

com.sun.xml.internal.Ws.streaming.Xmlstreamreaderexception: Unexpected XML tag.
expected: {}enviar
but found: {http://schemas.xmlsoap.org/soap/envelope/}send

Briefly, it is indicating that the result obtained is not as expected for the path indicated on the client’s side.

Check your address, it must be incomplete or contain a typo.

  • After a lot of head breaking, I discovered that URN parameters were missing when registering the function in Webservice. Now I can access the service in both Java and C#. Grateful.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.