Altså... Jeg har en webservice der beder om at sende denne soap.
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /getstatus.asmx HTTP/1.1
Host: localhost
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:soap12="
http://www.w3.org/2003/05/soap-envelope"> <soap12:Body>
<GetNodeStatus xmlns="
http://10.10.10.41/GetStatus"> <NodeName>string</NodeName>
</GetNodeStatus>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:soap12="
http://www.w3.org/2003/05/soap-envelope"> <soap12:Body>
<GetNodeStatusResponse xmlns="
http://10.10.10.41/GetStatus"> <GetNodeStatusResult>xml</GetNodeStatusResult>
</GetNodeStatusResponse>
</soap12:Body>
</soap12:Envelope>
hvis jeg skriver Node name, og trykker invoke får jeg dette output:
- <Result>
- <Node>
<NODE_NAME>hemmelig</NODE_NAME>
<PLATFORM_NAME>WinNT</PLATFORM_NAME>
<DOMAIN_NAME>server</DOMAIN_NAME>
<CONTACT />
<LASTACC_TIME>4/24/2008 11:06:47 AM</LASTACC_TIME>
<REG_TIME>9/10/2007 1:13:39 PM</REG_TIME>
<LASTSESS_RECVD>693234748989</LASTSESS_RECVD>
<LASTSESS_SENT>1333762342392</LASTSESS_SENT>
<LASTSESS_DURATION>196423</LASTSESS_DURATION>
<LASTSESS_IDLEWAIT>1.32382342892057026</LASTSESS_IDLEWAIT>
<LASTSESS_COMMWAIT>93.3299382349002036</LASTSESS_COMMWAIT>
<LASTSESS_MEDIAWAIT>0</LASTSESS_MEDIAWAIT>
<URL />
<TCP_NAME>hemmelig</TCP_NAME>
<TCP_ADDRESS>172.0.0.1</TCP_ADDRESS>
<OdbcTransferStamp>4/24/2008 1:00:00 PM</OdbcTransferStamp>
</Node>
Men jeg fatter ikke at få det trukket ud på en aspx side. Jeg må være små dum, jeg er ved at gå til af idioti.