empalacios / soap_client

Dynamic soap client for .net projects
MIT License
1 stars 1 forks source link

Query without parameters #1

Open sparrow323 opened 2 months ago

sparrow323 commented 2 months ago

Hello,

How to query the service without passing parameters using your library? Example from SOAP UI (page: https://sscweb.gsfc.nasa.gov/WS/helio/1/HeliocentricTrajectoriesService )

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hel="http://helio.spdf.gsfc.nasa.gov/">
   <soapenv:Header/>
   <soapenv:Body>
      <hel:getAllObjects/>
   </soapenv:Body>
</soapenv:Envelope>

My code:

    Dim ws_url As String = "https://sscweb.gsfc.nasa.gov/WS/helio/1/HeliocentricTrajectoriesService"
    Dim ws_namespace As String = "http://helio.spdf.gsfc.nasa.gov/"
    Dim client As Soap1_1WsClient = New Soap1_1WsClient(ws_url, ws_namespace)

    Dim parameters As New Dictionary(Of String, Object)()
    parameters.Add("???", "???")
    Dim result As String = client.callServiceFunction("getAllObjects", parameters)
    client.callServiceMethod("getAllObjects", parameters)

What to give for "???"

empalacios commented 1 month ago

Try not using parameters.Add instruction