soap - How can I call a ASP.Net made web service without using MSXML? -
i using particular language named “magik”, used use msxml2 run web services in 1 of projects failed use msxml, tried lot of thing make work changing msxml.dll , testing different version of msxml, using msxmlhttpserver , things may think of, somehow ate msdn website didn’t find helpfull.
now looking other ways of calling soap webservice, said may post xml web method address parsing , using query string, didn’t succeed so.
i can negotiate via tcp/ip, can send xml web service using tcp/ip connection?
if there other way job appreciate it.
currently connecting magik java application , when need call web service send request java application (there jar file creates data-bus between magik session , java application) have wrote java part using axis technology. hard job , should change lot of things keep project , match small change in web service consume. using msxml easy formerly, sadly not work now!
first note can not use get
call soap
web services post
work soap
, can used rest
mentioned soap
only.
i can introduce 2 method may use call web service instead of msxml not work anymore.
using test form (web service test page)
- you may ask .net web services provider create test form own web service , create query string suppose emulate data on form, using web services tester page send data via query string , complete rest you.
using tcpip
- use tcp/ip connection, in method need create header above xml set parameters web service consumer should fill (remember msxml , content-type, content-length, soapaction, host, …….) translate string byte vector since programming language can create tcpip socket accept byte vector while inputing or outputing data connection. after translating string ready send data web services address. take @ following example of how may create string send tcpip socket.
post /globalweather.asmx http/1.1 host: www.webservicex.net content-type: text/xml; charset=utf-8 content-length: length soapaction: "http://www.webservicex.net/getcitiesbycountry" <?xml version="1.0" encoding="utf-8"?> <soap:envelope xmlns:xsi=http://www.w3.org/2001/xmlschema-instance xmlns:xsd=http://www.w3.org/2001/xmlschema xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:body> <getcitiesbycountry xmlns="http://www.webservicex.net"> <countryname>egypt</countryname> </getcitiesbycountry> </soap:body> </soap:envelope>
you may send above string http://www.webservicex.net/globalweather.asmx
you may check following link if need detailed information how consume web service using tcpip
http://www.codeproject.com/articles/312530/calling-webservice-using-tcp-ip-from-any-programmi
Comments
Post a Comment