Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOAP call returns empty string #45

Closed
tomasruud opened this issue Nov 6, 2017 · 5 comments
Closed

SOAP call returns empty string #45

tomasruud opened this issue Nov 6, 2017 · 5 comments

Comments

@tomasruud
Copy link

I am trying to use a web service which I have generated some code for, based on the WSDL. The service returns GetResult of the query as a string, which is a string containing XML. This service is query-based so the XML returned in the GetResult is variable depending on which query is used.

My problem is that when I try using this service, GetResult is allways an empty string. The output below is what the result looks like when I run the request in SOAPUI.

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetResponse xmlns="http://www.example.com/webservices">
         <GetResult>
            <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
               <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
                  <xs:complexType>
                     <xs:choice minOccurs="0" maxOccurs="unbounded">
                        <xs:element name="Table">
                           <xs:complexType>
                              <xs:sequence>
                                 <xs:element name="ID" type="xs:decimal" minOccurs="0"/>
                              </xs:sequence>
                           </xs:complexType>
                        </xs:element>
                     </xs:choice>
                  </xs:complexType>
               </xs:element>
            </xs:schema>
            <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
               <NewDataSet xmlns="">
                  <Table diffgr:id="Table1" msdata:rowOrder="0">
                     <ID>12345</ID>
                  </Table>
               </NewDataSet>
            </diffgr:diffgram>
         </GetResult>
      </GetResponse>
   </soap:Body>
</soap:Envelope>
@fiorix
Copy link
Owner

fiorix commented Nov 6, 2017

Hey, this requires some troubleshooting that I don't have the time to do at this point. It'd be good if you could reproduce this in a unit test and then we could discuss options for fixing it.

@fiorix
Copy link
Owner

fiorix commented Dec 5, 2017

Ping @tomasruud

@tomasruud
Copy link
Author

Sorry, I've been too busy to have had a chance to look at this. I might do it when I have some more time.

@fiorix
Copy link
Owner

fiorix commented Dec 9, 2017

No rush :)

@fiorix
Copy link
Owner

fiorix commented Dec 28, 2017

This should be fixed by now.

@fiorix fiorix closed this as completed Dec 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants