Forum Discussion

rodnikosh's avatar
14 years ago

calling a basic WCF service problem

i opened a default WCF project in VS2010.
this project comes with a GetData(int value) method and supposed to print out "You entered #The number".
i added a soap endpoint called "wsAdd"
i installed it on the iis and directed the SoapUI 3.6 to the service:
http://localhost/ProvisioningWCFServer/ ... .svc/WsAdd

this is he request in the left window:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/">
<soap:Header/>
<soap:Body>
<tem:GetData>
<tem:value>545</tem:value>
</tem:GetData>
</soap:Body>
</soap:Envelope>


but instead of getting a result on the right window, i get this:

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action s:mustUnderstand="1">http://www.w3.org/2005/08/addressing/soap/fault</a:Action>
</s:Header>
<s:Body>
<s:Fault>
<s:Code>
<s:Value>s:Sender</s:Value>
<s:Subcode>
<s:Value xmlns:a="http://schemas.xmlsoap.org/ws/2005/02/sc">a:BadContextToken</s:Value>
</s:Subcode>
</s:Code>
<s:Reason>
<s:Text xml:lang="en-US">The message could not be processed. This is most likely because the action 'http://tempuri.org/IProvisioning/GetData' is incorrect or because the message contains an invalid or expired security context token or because there is a mismatch between bindings. The security context token would be invalid if the service aborted the channel due to inactivity. To prevent the service from aborting idle sessions prematurely increase the Receive timeout on the service endpoint's binding.</s:Text>
</s:Reason>
</s:Fault>
</s:Body>
</s:Envelope>


what is the problem? where did "'http://tempuri.org/" came from ? am i missing a configuration in the WCF Service Config?