2 Replies Latest reply on Jan 24, 2013 8:24 AM by Adam Kurk

    JSON from JBossWS Native - how to request?

    Alucard Hellsing Newbie

      Hello,

       

      I try to integrate my existing JAX-WS endpoint with GWT UI and wish to call enpoint methods in direct fashion from browser. I wrote a proxy JSON endpoint annotated with @JsonEncoding and it starts up fine. When I request a method from soapUI (in soap fashion, I presume), I get this exception:

       

      ERROR [SOAPFaultHelperJAXWS] SOAP request exception
      java.io.IOException: Cannot parse input stream
      

       

      and error text in soapUI looks like this:

       

      {"env:Fault":{"faultcode":{"$":"env:Server"},"faultstring":{"$":"Cannot parse input stream"}}}

       

      which gives me a hint that endpoint is actually deployed in JSON fashion.

       

      Now the question is, how do I make requests to this JSON endpoint? :-) There are some method names with parameters which I should somehow encode in url, but how?

       

      Also, are there any tools (like soapUI) for JSON services interaction?

       

      Thank you,

      Nic.