sb20642 0 Newbie Poster

I have a web service which has the soap authentication.
But when i view the HTTP Request format in the soap envelope i dont find the xmlns:type attribute and also in the soap:body i dont find soap:encodingStyles attribute.

How to add these attributes from the web service side.


I need it in the following format...
I have bold the text which i need...

POST /NumanWS/NumanLostStolenService.asmx HTTP/1.1
Host: dev-soap.humana.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://schemas.humana.com/ApplicationServices/SpendingAccounts/CardStatusManagement/MarkCardLostStolen"

<?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:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://schemas.humana.com/ApplicationServices/SpendingAccounts/CardStatusManagement" [B]xmlns:types="http://schemas.humana.com/ApplicationServices/SpendingAccounts/CardStatusManagement/encodedTypes" [/B]xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <types:AuthenticationHeader>
      <Username xsi:type="xsd:string">string</Username>
      <Password xsi:type="xsd:string">string</Password>
    </types:AuthenticationHeader>
  </soap:Header>
  <soap:Body [B]soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">[/B]
    <[B]tns:[/B]MarkCardLostStolen>
      <inputXml [B]xsi:type="xsd:string"[/B]>string</inputXml>
    </tns:MarkCardLostStolen>
  </soap:Body>
</soap:Envelope>

Can anyone help me out in this

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.