2 Replies Latest reply on Apr 24, 2012 9:34 AM by 932733

    Urgent  help in WS- I need to access .net service using java client .

      Hi ,

      I am trying to access .net web service using java client and i am using the below 1)netbeans 7.01 2) jaxws 3) jdk6 4)Glassfish server. i am able to create stub using wsdl file which is given by .net web service.i can see the below error

      Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: MustUnderstand headers:[{http://www.w3.org/2005/08/addressing}Action] are not understood
      at com.sun.xml.internal.ws.protocol.soap.MUTube.createMUSOAPFaultException(MUTube.java:143)
      at com.sun.xml.internal.ws.protocol.soap.ClientMUTube.processResponse(ClientMUTube.java:85)
      at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:597)
      at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:546)
      at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:531)
      at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:428)
      at com.sun.xml.internal.ws.client.Stub.process(Stub.java:211)
      at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:124)
      at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:98)
      at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
      at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
      at $Proxy30.helloMperks(Unknown Source)
      at HTTPMain.main(HTTPMain.java:25)

      when i access .net web service through Java client.but i can access .net web service using .net web client with out any error. so can you tell clearly how to solve this issue please.

        • 1. Re: Urgent  help in WS- I need to access .net service using java client .
          What you should do now and every time in the future: in stead of posting the exception in a forum, post it in google. In this case you can literally post "javax.xml.ws.soap.SOAPFaultException: MustUnderstand headers:[{http://www.w3.org/2005/08/addressing}Action] are not understood" in Google and you get a great number of results discussing the problem. Then its up to you to filter through the information and find a likely solution or if necessary a workaround.

          A quick glance provides a mention that you should be using JAX-WS 2.2 to be able to handle addressing. This document also seems to cover the exact mechanism that is failing for you:


          (which seems to indicate that JAX-WS 2.1 is already enough). Likely you need to follow some steps as described in the "on the client side" section.
          1 person found this helpful
          • 2. Re: Urgent  help in WS- I need to access .net service using java client .
            Hi gimbal2 ,
            Thanks for reply.

            I tired in google and got few solutions, like change the headers <s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">,add the mustunderstand=1 parameter in the request.but didn't work .this is interoperability issue.so dont know how to figure out.let me know if you have experience with this issue.