No SOAPAction in dynamic proxy client

Discussions

XML & Web services: No SOAPAction in dynamic proxy client

  1. No SOAPAction in dynamic proxy client (2 messages)

    I am trying to consume a .NET Web service from a J2EE client. I am using a dynamic proxy client from http://java.sun.com/webservices/docs/1.3/tutorial/doc/JAXRPC5.html#wp79973

    However, I am have a problem with the SOAPAction HTTP header. .NET requires this header element to be set but the proxy sends an empty SOAPAction header. What is the solution to this problem?

    Threaded Messages (2)

  2. Set[ Go to top ]

    I am trying to consume a .NET Web service from a J2EE client. I am using a dynamic proxy client from http://java.sun.com/webservices/docs/1.3/tutorial/doc/JAXRPC5.html#wp79973However, I am have a problem with the SOAPAction HTTP header. .NET requires this header element to be set but the proxy sends an empty SOAPAction header. What is the solution to this problem?
    Check this MSDN article on how to modify the SoapAction behavior of .NET Web Services.

    <quote> If the .asmx handler doesn't find a SOAPAction match for the incoming HTTP message, it simply throws an exception (more later on how exceptions are handled). If you'd rather not rely on the SOAPAction header for method dispatching, you can instruct the .asmx handler to use the request element's name by annotating the class with the [SoapDocumentService] attribute's RoutingStyle property. If you do this, you should probably also indicate that the WebMethods don't require a SOAPAction value by setting their values to the empty string </quote>
  3. Set[ Go to top ]

    I'm trying to solve exactly same problem, but i'm on .NET side, RoutingStyle didn't worked, SOAPAction is still required and cannot be empty