SOAP Request - Service Receiving Null Parameter Values

Forgive my SOAP ignorance here but... one of our clients is trying to submit a SOAP request to our (svc) web service without any success.  I've tried replicating the issue in debug mode using "soapUI" and have found that the request is hitting the method but the parameters are being received as nulls.  The method it is hitting is:

        public int SendStringRequest(string AccountKey, string xmlSearchRequest)
        {

         }

Open in new window



and the request they are sending is:

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://tempuri.org/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  <env:Body>
    <tns:SendStringRequest>
      <AccountKey>KEY</AccountKey>
      <xmlSearchRequest>XML STRING</xmlSearchRequest>
    </tns:SendStringRequest>
  </env:Body>
</env:Envelope>

Open in new window


They are receiving a response:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <SendStringRequestResponse xmlns="http://tempuri.org/">
         <SendStringRequestResult>-1</SendStringRequestResult>
      </SendStringRequestResponse>
   </s:Body>
</s:Envelope>

Open in new window


where the -1 is due to the AccountKey and xmlSearchRequest being null values when the request is received.  Any suggestion where to begin looking on this one?

Thanks,
Greg
Greg_L_WERAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Thomas WheelerCommented:
Do you have a sample of the code they are using to send the request?
0
Greg_L_WERAuthor Commented:
Unfortunately I don't but have been able to replicate it using a program called "soapUI" that allows me to submit the request.
0
Greg_L_WERAuthor Commented:
Turns out it just needed the "tns:" in front of the parameter element names... for some reason the code generation neglected to include it there.  This is the updated request that works.

Thanks,
Greg

<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://tempuri.org/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  <env:Body>
    <tns:SendStringRequest>
      <tns:AccountKey>KEY</tns:AccountKey>
      <tns:xmlSearchRequest>XML STRING</tns:xmlSearchRequest>
    </tns:SendStringRequest>
  </env:Body>
</env:Envelope>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Greg_L_WERAuthor Commented:
Solution found
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WCF

From novice to tech pro — start learning today.