Note that there are some explanatory texts on larger screens.

plurals
  1. POMicrosoft SSRS consuming JAX-WS Web Service
    primarykey
    data
    text
    <p>I have developed a Web Service using JAX-WS (v2.1.3 - Sun JDK 1.6.0_05) that works just fine when I use a Java client or SoapUI or other Web Services testing tools. I need to consume this service using 2005 Microsoft SQL Server Reporting Services and I get the following error</p> <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt; &lt;S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;S:Body&gt; &lt;S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope"&gt; &lt;faultcode&gt;S:Client&lt;/faultcode&gt; &lt;faultstring&gt;Couldn't create SOAP message due to exception: XML reader error: unexpected character content: "?" &lt;/faultstring&gt; &lt;/S:Fault&gt; &lt;/S:Body&gt; &lt;/S:Envelope&gt; </code></pre> <p>If I use a HTTP proxy to sniff out what SSRS is sending, I see EF BB BF as the beginning of the post body and JAX-WS doesn't like that. If I remove the special characters and resubmit the request using Fiddler, then the web-service invocation works.</p> <p>My question is why does SSRS introduce these special characters and how can I make it stop? If I can't stop it, how can I get JAX-WS to ignore them? Here is my SSRS query:</p> <pre><code>&lt;Query&gt; &lt;Method Name="getOneUser" Namespace="http://vinny.com" &gt; &lt;/Method&gt; &lt;/Query&gt; </code></pre> <p>I've also tried a query like this below:</p> <pre><code>&lt;Query&gt; &lt;Method Name="getOneUser" Namespace="http://vinny.com" &gt; &lt;/Method&gt; &lt;SoapAction&gt;http://vinny.com/getOneUser&lt;/SoapAction&gt; &lt;ElementPath IgnoreNamespaces="true"&gt;*&lt;/ElementPath&gt; &lt;/Query&gt; </code></pre> <p>Does anyone have any ideas on what I can try? I've tried several different types of annotations on the JAX-WS side to change the type of SOAPBinding, etc. but nothing seem to make it work with Microsoft SSRS.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload