You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Dave Meier (JIRA)" <ji...@apache.org> on 2008/01/09 21:03:34 UTC
[jira] Created: (AXIS2C-895) faultcode uses env:Server instead of
soapenv:Server
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Commented: (AXIS2C-895) faultcode uses env:Server instead of
soapenv:Server
Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557903#action_12557903 ]
Samisa Abeysinghe commented on AXIS2C-895:
------------------------------------------
The problems was this was hard coded in raw xml message receiver. I have changed env to soapenv to fix the problem. The more correct way to fix this is to use cont variables in place of hard coded values.
> 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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Resolved: (AXIS2C-895) faultcode uses env:Server instead of
soapenv:Server
Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Samisa Abeysinghe resolved AXIS2C-895.
--------------------------------------
Resolution: Fixed
Fix Version/s: 1.2.1
Please test now, should be working.
> 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
> Assignee: Samisa Abeysinghe
> Priority: Critical
> Fix For: 1.2.1
>
>
> 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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Assigned: (AXIS2C-895) faultcode uses env:Server instead of
soapenv:Server
Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Samisa Abeysinghe reassigned AXIS2C-895:
----------------------------------------
Assignee: Samisa Abeysinghe
> 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
> Assignee: Samisa Abeysinghe
> 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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Commented: (AXIS2C-895) faultcode uses env:Server instead of
soapenv:Server
Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557904#action_12557904 ]
Samisa Abeysinghe commented on AXIS2C-895:
------------------------------------------
This was fixed after 1.2 was packed. So you have to use the svn head to test this.
> 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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org