Note that there are some explanatory texts on larger screens.

plurals
  1. POProblems with a SOAP response in a SOAP web service
    primarykey
    data
    text
    <p>I am using the Oracle Jdeveloper to develop a SOAP based web service however i am having a strange behaviour. When I send a Request the response is: There are errors in the SOAP message which mean its structure cannot be displayed. However if i investigate the HTTP content the response is hust right what i was expecting:</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;ns2:dizResponse xmlns:ns2="http://ofelia/"&gt; &lt;return&gt; &lt;ns2:POSI&gt; &lt;RefreshInterval&gt;0&lt;/RefreshInterval&gt; &lt;Lon&gt;53&lt;/Lon&gt; &lt;Lat&gt;14&lt;/Lat&gt; &lt;/ns2:POSI&gt; &lt;/return&gt; &lt;/ns2:dizResponse&gt; &lt;/S:Body&gt; &lt;/S:Envelope&gt; </code></pre> <p>The xml schema that validates is: </p> <pre><code>&lt;xs:schema version="1.0" targetNamespace="http://ofelia/" xmlns:tns="http://ofelia/" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; &lt;xs:element name="POSI"&gt; &lt;xs:complexType&gt; &lt;xs:all&gt; &lt;xs:element name="TimeStamp" type="xs:string"/&gt; &lt;xs:element name="RefreshInterval" type="xs:int"/&gt; &lt;xs:element name="Lon" type="xs:int"/&gt; &lt;xs:element name="Lat" type="xs:int"/&gt; &lt;/xs:all&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;xs:element name="TESTE"&gt; &lt;xs:complexType&gt; &lt;xs:all&gt; &lt;xs:element name="TimeStamp" type="xs:string"/&gt; &lt;xs:element name="cenas" type="xs:float" nillable="true"/&gt; &lt;/xs:all&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;xs:complexType name="dizResponse"&gt; &lt;xs:sequence&gt; &lt;xs:element name="return" minOccurs="0"&gt; &lt;xs:complexType mixed="true"&gt; &lt;xs:sequence&gt; &lt;xs:choice minOccurs="0" maxOccurs="unbounded"&gt; &lt;xs:element ref="tns:POSI"/&gt; &lt;xs:element ref="tns:TESTE"/&gt; &lt;/xs:choice&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; </code></pre> <p>HTTP REQUEST:</p> <pre><code>POST http://localhost:7101/ofelia/agrupaPort HTTP/1.1 SOAPAction: "" Content-Type: text/xml; charset=UTF-8 Host: localhost:7101 Content-Length: 155 X-HTTPAnalyzer-Rules: 1@localhost:8099 &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://ofelias/"&gt; &lt;env:Header/&gt; &lt;env:Body&gt; &lt;ns1:diz/&gt; &lt;/env:Body&gt; &lt;/env:Envelope&gt; </code></pre> <p>HTTP ANSWER:</p> <pre><code>HTTP/1.1 200 OK Content-Type: text/xml;charset=UTF-8 X-Powered-By: Servlet/2.5 JSP/2.1 Date: Thu, 11 Jul 2013 10:30:23 GMT X-ORACLE-DMS-ECID: 583c10bfdbd326ba:-2aaa5a0a:13fc957b02e:-8000-0000000000000441 Content-Length: 403 X-HTTPAnalyzer-RuleName: Pass through : &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:dizResponse xmlns:ns2="http://ofelias/"&gt; &lt;return&gt; &lt;ns2:TESTE&gt; &lt;cenas&gt;1.0&lt;/cenas&gt; &lt;TimeStamp&gt;asdasdasd&lt;/TimeStamp&gt; &lt;/ns2:TESTE&gt; &lt;ns2:POSI&gt; &lt;RefreshInterval&gt;5&lt;/RefreshInterval&gt; &lt;Lon&gt;53.0&lt;/Lon&gt; &lt;Lat&gt;14.0&lt;/Lat&gt; &lt;TimeStamp&gt;asdasdsa&lt;/TimeStamp&gt; &lt;/ns2:POSI&gt; &lt;/return&gt; &lt;/ns2:dizResponse&gt; &lt;/S:Body&gt; &lt;/S:Envelope&gt; </code></pre> <p>Any idea why this is happening ? </p> <p>Best regards</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.
    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