Note that there are some explanatory texts on larger screens.

plurals
  1. POWeblogic Webservices - In SOAP response - GT resolves to left bracket but LT does not (stays as <)?
    primarykey
    data
    text
    <p>I have a Webservice that returns an XML Payload.</p> <p>In that Web Service Response - My GT brackets resolve to a real bracket - while the LT stays as <code>&amp;lt;</code> - i have no idea why.</p> <p>Using</p> <p>Weblogic 10.3</p> <p>The Webservice is annotated as </p> <pre class="lang-java prettyprint-override"><code>@WebService(name = "MyService", portName = "MyServicePort", serviceName = "MyService", targetNamespace = "http://kwikksilva/myservice/ws") @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) </code></pre> <p>The method like so </p> <pre class="lang-java prettyprint-override"><code>@WebMethod @WebResult(name = "SyncResponse", targetNamespace = "http://kwikksilva/myservice/ws") public SyncResponseTO processRequest( </code></pre> <p>It returns a TO with a payload</p> <pre class="lang-java prettyprint-override"><code>@XmlRootElement(name = "SyncResponse", namespace = "http://kwikksilva/myservice/ws") @XmlAccessorType(XmlAccessType.FIELD) public class SyncResponseTO implements Serializable { /** The Constant serialVersionUID. */ private static final long serialVersionUID = 1L; /** The response. */ @XmlElement(name = "Payload", nillable = false, required = true) private String payload; </code></pre> <p>I get a response back which looks like this</p> <pre class="lang-xml prettyprint-override"><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;ns2:processSyncRequestResponse xmlns:ns2="http://kwikksilva/myservice/ws"&gt; &lt;ns2:SyncResponse&gt; &lt;Payload xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string"&gt; &amp;lt;Vbc&gt; &amp;lt;ApptEffDt&gt;795243600000&amp;lt;/ApptEffDt&gt; &amp;lt;/Vbc&gt; &lt;/Payload&gt; &lt;/ns2:SyncResponse&gt; &lt;/ns2:processSyncRequestResponse&gt; &lt;/S:Body&gt; &lt;/S:Envelope&gt; </code></pre> <p>Why would one encode to a bracket and not the other?</p> <p>Has anyone got any ideas on this - i am confused....</p>
    singulars
    1. This table or related slice is empty.
    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