Click here to Skip to main content
15,891,688 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

Recently I faced a new issue with server request. I have caught the request message in wire shark is like this..

XML
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body><UpdateProfile xmlns="http://NCR/APTRA/PSCustomerPower">
    <consumerId>2463642300010001</consumerId>
    <terminalId>CRM1234</terminalId>
    <profile><ConsumerProfile>
      <EMail>test1@test.com</EMail>
      <ReceiptDelivery />
    <SMSNumber>0123456789</SMSNumber><PromptToSaveCurrentTransaction>true</PromptToSaveCurrentTransaction>
      <PrintBalance>Undefined</PrintBalance>
    </ConsumerProfile>
      <ConsumerGroup />
      <UpdateOption>Never</UpdateOption></profile>
  </UpdateProfile>
  </soap:Body>
</soap:Envelope>


But server is looking my profile object as ..

XML
<Profile>
      <ConsumerProfile  xmlns="http://NCR/APTRA/PSCustomerPower">
      <EMail>test1@test.com</EMail>
      <ReceiptDelivery />
    <SMSNumber>0123456789</SMSNumber><PromptToSaveCurrentTransaction>true</PromptToSaveCurrentTransaction>
      <PrintBalance>Undefined</PrintBalance>
    </ConsumerProfile>
      <ConsumerGroup />
      <UpdateOption>Never</UpdateOption></Profile>



Difference is profile object would be like Profile "Caps P" and the next child node added name space. These are not coming by default to wsdl 2.0 codeDom compiler with Framework 2.0

Server is in C# 4.0 compiler with same code Dom compiler.

How to resolve this please help.

Regards,
SKOTAJI.
Posted
Updated 20-Nov-13 4:57am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900