faultcode uses env:Server instead of soapenv:Server
---------------------------------------------------

                 Key: AXIS2C-895
                 URL: https://issues.apache.org/jira/browse/AXIS2C-895
             Project: Axis2-C
          Issue Type: Bug
    Affects Versions: 1.1.0
         Environment: Windows XP
            Reporter: Dave Meier
            Priority: Critical


I built a skeleton project after generated code from my WSDL.  Then I made a 
web service call to make sure the dll loads.

The server sends back an expected error, but the client does not like the 
"env:Sender" faultcode because "env" is not defined.  I am using Visual Studio 
2005 C# as the client.

Here is the response that comes back to the client:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
  <soapenv:Header/>
  <soapenv:Body>
    <soapenv:Fault>
      <faultcode>env:Sender</faultcode>
      <faultstring>Data element of the OM Node is null</faultstring>
      <detail>
        <fault>aewebservices70|http://localhost:80/gsoap/aewebservices70.wsdl 
failed</fault>
      </detail>
    </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>

And here is the exception I get from the client when it receives this response:

System.InvalidOperationException was unhandled
  Message="Namespace prefix 'env' not defined"
  Source="System.Web.Services"
  StackTrace:
       at 
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadFaultCode(XmlReader 
reader)
       at 
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadSoapException(XmlReader
 reader)
       at 
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
 message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String 
methodName, Object[] parameters)
       at axis2client.aeweb.aewebservices70Wse.CreatePrimaryItem(Auth auth, 
String projectID, TTItem item, String submitTransID) in D:\axis2client\Web 
References\aeweb\Reference.cs:line 431
       at axis2client.AEClient.TestCreatePrimaryItem(myaewebservices aeserv) in 
D:\axis2client\Client.cs:line 372
       at axis2client.AEClient.TestCreateItems(myaewebservices aeserv) in 
D:\axis2client\Client.cs:line 584
       at axis2client.AEClient.Main(String[] args) in 
D:\axis2client\Client.cs:line 671
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence 
assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext 
executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to