I’ve added a web service into my project in Visual Studio but I can’t seem to work out how to query it.
The web service should return XML code based on the query I send to it.
This is what i’m trying
Dim proxy As New mywebservice.xmlcall()
Dim query As String = "Select * FROM table"
Dim dataset1 As DataSet = proxy.call(query)
I seem to get the error
Value of type ‘String’ cannot be converted to ‘System.Data.DataSet’
I’m new to WCF web services and I can’t seem to work this one out
Any ideas?
EDIT
<wsdl:operation name="call">
<soap:operation soapAction="http://website.org/Ixmlcall/call" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
That’s what’s in the WSDL
I get this error too if i change the code like this
Dim dataset1 As DataSet = proxy.call()
Argument not specified for parameter ‘value’ of ‘Public Function call(value As String) As String’
UPDATE
I have changed a few bits now and it now returns an error
ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00229: input source is empty Error at line 0 ORA-06512: at “SYS.XMLTYPE”, line 272 ORA-06512: at “PM1STEP.XML_FUNCTION_CALL”, line 30 ORA-06512: at line 1
Any ideas?
I managed to work this one out.
I needed to pass a string to Web Service which contained XML data like this