RE: problem with C# client of axis2 service

2006-04-20 Thread Luis Antonio Martinez Cuevas








 

Hello.

 

I am new in web services,
i am trying to run this example 

 

http://www.osmosislatina.com/axis/webserviceswsdl.htm

 

but is not working, could
some one try it and tell me if runs in your tomcat?

 

thanks









De: Bennett, Derek
[mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 20 de abril de
2006 17:02
Para: axis-user@ws.apache.org
Asunto: RE: problem with C# client
of axis2 service



 



I think that there is actually a problem
with Axis2. Using the attached WSDL file I sent the 2 messages and
received 2 responses, one from each client type (see attached message
transcript). As you can see, the responses have identical meta-data. Regarding
what Ms. Manes said before (below), about how the reponse message *should*
look, think that Axis2 is sending incorrectly formatted responses for the given
WSDL.





-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006
8:50 AM
To: axis-user@ws.apache.org
Subject: Re: problem with C#
client of axis2 service

Perhaps someone more
familiar with the raw XML receiver can explain why Axis2 is generating a bogus
WSDL file for you.



On 4/18/06, Bennett,
Derek <
[EMAIL PROTECTED]> wrote: 





The WSDL is that which was produced by
axis2 when I make the following request:









http://localhost:8080/axis2/services/XmlEcho?wsdl










I shall attach my sources so that you can
replicate my results. 





The XmlEchoClient works just fine even
with the bad WSDL.





The .Net client (using
"WebReference" objects generated by Visual Studio 2005) seems to be
less tolerent of the WSDL vs actual message mismatch.





Any diagnostic help you could provide
would be most helpful.





Thanks,









Derek Bennett





[EMAIL PROTECTED]









-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 17, 2006 8:24
PM
To: axis-user@ws.apache.org
Subject: Re: problem with C#
client of axis2 service

First -- the  issue applies only to Axis1 using rpc/encoded. 

Second, your response message doesn't correspond with your WSDL. Your WSDL is
telling .NET to expect a response message like this: 



    xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">
   
   
   http://org.apache.axis2/xsd">
        
           [anyType content]



        
 
    


How is it that you produced the response message that you did?

Anne



 



On 4/17/06, Bennett,
Derek <
[EMAIL PROTECTED]> wrote: 

I have created a service, XmlEcho, which takes a String and outputs the
same String. 
I am running the service in axis2 running within an out-of-the-box local JBoss
server.
A simple Java client using the axis2 client jar(s) runs perfectly.
However, a simple C# client created by using the "WebReference"
facility within Visual Studio 2005 to gets a null response object. I have
already tried adding 

to my system.xml based on a thread from earlier this week.
Does anyone have any advice regarding how to get C# and Visual Studio working
with Axis2? 

The xml of the response looks like this:
===


http://schemas.xmlsoap.org/soap/envelope/">


http://hdayservice.result.com
" xmlns:tns="http://org.apache.axis2/">
Foobar


 

===

And, here is the wsdl that Axis2 produces:
===
http://org.apache.axis2/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://org.apache.axis2/
" targetNamespace="http://org.apache.axis2/">http://www.w3.org/2001/XMLSchema
" xmlns:ns1="http://org.apache.axis2/xsd"
targetNamespace="http://org.apache.axis2/xsd"
elementFormDefault="unqualified"
attributeFormDefault="unqualified"> 



 






 






 



http://schemas.xmlsoap.org/soap/http"
style="document" />http://www.org.apache.axis2" />http://www.org.apache.axis2"
/>http://www.org.apache.axis2 "
/>http://localhost:8080/axis2/services/XmlEcho
"
/>
=== 



**
This e-mail contains privileged attorney-client communications and/or
confidential information, and is only for the use by the intended recipient.
Receipt by an unintended recipient does not constitute a waiver of any
applicable privilege. 

Reading, disclosure, discussion, dissemination, distribution or copying of this
information by anyone other than the intended recipient or his or her employees
or agents is strictly prohibited.  If you have received th

RE: problem with C# client of axis2 service

2006-04-20 Thread Bennett, Derek



I 
think that there is actually a problem with Axis2. Using the attached WSDL file 
I sent the 2 messages and received 2 responses, one from each client 
type (see attached message transcript). As you can see, the responses have 
identical meta-data. Regarding what Ms. Manes said before (below), about how the 
reponse message *should* look, think that Axis2 is sending incorrectly formatted 
responses for the given WSDL.

  -Original Message-From: Anne Thomas Manes 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, April 19, 2006 8:50 
  AMTo: axis-user@ws.apache.orgSubject: Re: problem with 
  C# client of axis2 servicePerhaps someone more familiar 
  with the raw XML receiver can explain why Axis2 is generating a bogus WSDL 
  file for you.
  On 4/18/06, Bennett, 
  Derek < 
  [EMAIL PROTECTED]> wrote:
  

The WSDL is that which was 
produced by axis2 when I make the following 
request:

http://localhost:8080/axis2/services/XmlEcho?wsdl 


I shall attach my sources 
so that you can replicate my results. 
The XmlEchoClient works 
just fine even with the bad WSDL.
The .Net client (using 
"WebReference" objects generated by Visual Studio 2005) seems to be less 
tolerent of the WSDL vs actual message mismatch.
Any diagnostic help you 
could provide would be most helpful.
Thanks,

Derek 
Bennett
[EMAIL PROTECTED]


  -Original 
  Message-From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]]Sent: Monday, April 17, 
  2006 8:24 PMTo: axis-user@ws.apache.orgSubject: Re: problem 
  with C# client of axis2 serviceFirst -- the 
   issue applies only 
  to Axis1 using rpc/encoded. Second, your response message doesn't 
  correspond with your WSDL. Your WSDL is telling .NET to expect a response 
  message like this:     
  xmlns:soapenv=" 
  http://schemas.xmlsoap.org/soap/envelope/">  
     
     
   
  http://org.apache.axis2/xsd">        
             [anyType 
  content]
          
   
      
  How is it that you produced the 
  response message that you did?Anne
  On 4/17/06, Bennett, Derek < 
  [EMAIL PROTECTED]> wrote: 
  I 
have created a service, XmlEcho, which takes a String and outputs the 
same String. I am running the service in axis2 running within an 
out-of-the-box local JBoss server.A simple Java client using the 
axis2 client jar(s) runs perfectly.However, a simple C# client 
created by using the "WebReference" facility within Visual Studio 2005 
to gets a null response object. I have already tried adding 
to my 
system.xml based on a thread from earlier this week.Does anyone have 
any advice regarding how to get C# and Visual Studio working with Axis2? 
The xml of the response looks like 
this:=== 
http://schemas.xmlsoap.org/soap/envelope/">http://hdayservice.result.com " xmlns:tns="http://org.apache.axis2/">Foobar 
 
===And, 
here is the wsdl that Axis2 
produces:===http://org.apache.axis2/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap=" 
http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://org.apache.axis2/ 
" targetNamespace="http://org.apache.axis2/">http://www.w3.org/2001/XMLSchema " xmlns:ns1="http://org.apache.axis2/xsd" targetNamespace="http://org.apache.axis2/xsd" 
elementFormDefault="unqualified" attributeFormDefault="unqualified"> 
 
 
 
http://schemas.xmlsoap.org/soap/http" style="document" 
/>http://www.org.apache.axis2" 
/>http://www.org.apache.axis2" 
/>http://www.org.apache.axis2 " 
/>http://localhost:8080/axis2/services/XmlEcho " 
/>=== 
**This 
e-mail contains privileged attorney-client communications and/or 
confidential information, and is only for the use by the intended 
recipient. Receipt by an unintended recipient does not constitute a 
waiver of any applicable privilege. Reading, disclosure, 
discussion, dissemination, distribution or copying of this information 
by anyone other than the intended recipient or his or her employees or 
agents is strictly prohibited.  If you have received this 
communication in error, please immediately notify us and delete the 
original material from your computer. Sempra Energy Trading 
Corp. (SET) is not the same company as SD

Re: problem with C# client of axis2 service

2006-04-19 Thread Anne Thomas Manes
Perhaps someone more familiar with the raw XML receiver can explain why Axis2 is generating a bogus WSDL file for you.On 4/18/06, Bennett, Derek <
[EMAIL PROTECTED]> wrote:






The 
WSDL is that which was produced by axis2 when I make the following 
request:
http://localhost:8080/axis2/services/XmlEcho?wsdl

I 
shall attach my sources so that you can replicate my results. 

The 
XmlEchoClient works just fine even with the bad WSDL.
The 
.Net client (using "WebReference" objects generated by Visual Studio 2005) seems 
to be less tolerent of the WSDL vs actual message mismatch.
Any 
diagnostic help you could provide would be most helpful.
Thanks,
Derek 
Bennett
[EMAIL PROTECTED]


  -Original Message-From: Anne Thomas Manes 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, April 17, 2006 8:24 
  PMTo: axis-user@ws.apache.orgSubject: Re: problem with 
  C# client of axis2 serviceFirst -- the  issue applies only to Axis1 using 
  rpc/encoded. Second, your response message doesn't correspond with 
  your WSDL. Your WSDL is telling .NET to expect a response message like this: 
      
  xmlns:soapenv=" 
  http://schemas.xmlsoap.org/soap/envelope/">  
     
     
   
  http://org.apache.axis2/xsd">        
             [anyType 
  content]
          
   
      
  How is it that you produced the response 
  message that you did?Anne
  On 4/17/06, Bennett, 
  Derek < 
  [EMAIL PROTECTED]> wrote:
  I 
have created a service, XmlEcho, which takes a String and outputs the same 
String. I am running the service in axis2 running within an 
out-of-the-box local JBoss server.A simple Java client using the axis2 
client jar(s) runs perfectly.However, a simple C# client created by 
using the "WebReference" facility within Visual Studio 2005 to gets a null 
response object. I have already tried adding to my system.xml based on a 
thread from earlier this week.Does anyone have any advice regarding how 
to get C# and Visual Studio working with Axis2? The xml of the 
response looks like 
this:=== 
http://schemas.xmlsoap.org/soap/envelope/">http://hdayservice.result.com " 
xmlns:tns="http://org.apache.axis2/">Foobar
 
===And, 
here is the wsdl that Axis2 
produces:===http://org.apache.axis2/xsd" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:soap=" 
http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:tns="http://org.apache.axis2/ " 
targetNamespace="http://org.apache.axis2/">http://www.w3.org/2001/XMLSchema 
" xmlns:ns1="http://org.apache.axis2/xsd" 
targetNamespace="http://org.apache.axis2/xsd" 
elementFormDefault="unqualified" attributeFormDefault="unqualified"> 
 
 
 
http://schemas.xmlsoap.org/soap/http" 
style="document" />http://www.org.apache.axis2" 
/>http://www.org.apache.axis2" 
/>http://www.org.apache.axis2 
" 
/>http://localhost:8080/axis2/services/XmlEcho
" 
/>=== 
**This 
e-mail contains privileged attorney-client communications and/or 
confidential information, and is only for the use by the intended recipient. 
Receipt by an unintended recipient does not constitute a waiver of any 
applicable privilege. Reading, disclosure, discussion, 
dissemination, distribution or copying of this information by anyone other 
than the intended recipient or his or her employees or agents is strictly 
prohibited.  If you have received this communication in error, 
please immediately notify us and delete the original material from your 
computer. Sempra Energy Trading Corp. (SET) is not the same company 
as SDG&E or SoCalGas, the utilities owned by SET's parent 
company.  SET is not regulated by the California Public Utilities 
Commission and you do not have to buy SET's products and services to 
continue to receive quality regulated service from the utilities. 
**
**This e-mail contains privileged attorney-client communications and/or confidential information, and is only for the use by the intended recipient. Receipt by an unintended recipient does not constitute a waiver of any applicable privilege.
Reading, disclosure, discussion, dissemination, distribution or copying of this information by anyone other than the intended recipient or his or her employees or agents is strictly prohibited.  If you have received this communication in error, please immediately notify us and delete the original material from your 

RE: problem with C# client of axis2 service

2006-04-18 Thread Bennett, Derek



The 
WSDL is that which was produced by axis2 when I make the following 
request:
http://localhost:8080/axis2/services/XmlEcho?wsdl
I 
shall attach my sources so that you can replicate my results. 

The 
XmlEchoClient works just fine even with the bad WSDL.
The 
.Net client (using "WebReference" objects generated by Visual Studio 2005) seems 
to be less tolerent of the WSDL vs actual message mismatch.
Any 
diagnostic help you could provide would be most helpful.
Thanks,
Derek 
Bennett
[EMAIL PROTECTED]

  -Original Message-From: Anne Thomas Manes 
  [mailto:[EMAIL PROTECTED]Sent: Monday, April 17, 2006 8:24 
  PMTo: axis-user@ws.apache.orgSubject: Re: problem with 
  C# client of axis2 serviceFirst -- the  issue applies only to Axis1 using 
  rpc/encoded. Second, your response message doesn't correspond with 
  your WSDL. Your WSDL is telling .NET to expect a response message like this: 
      
  xmlns:soapenv=" 
  http://schemas.xmlsoap.org/soap/envelope/">  
     
     
   
  http://org.apache.axis2/xsd">        
             [anyType 
  content]
          
   
      
  How is it that you produced the response 
  message that you did?Anne
  On 4/17/06, Bennett, 
  Derek < 
  [EMAIL PROTECTED]> wrote:
  I 
have created a service, XmlEcho, which takes a String and outputs the same 
String. I am running the service in axis2 running within an 
out-of-the-box local JBoss server.A simple Java client using the axis2 
client jar(s) runs perfectly.However, a simple C# client created by 
using the "WebReference" facility within Visual Studio 2005 to gets a null 
response object. I have already tried adding to my system.xml based on a 
thread from earlier this week.Does anyone have any advice regarding how 
to get C# and Visual Studio working with Axis2? The xml of the 
response looks like 
this:=== 
http://schemas.xmlsoap.org/soap/envelope/">http://hdayservice.result.com " 
xmlns:tns="http://org.apache.axis2/">Foobar 
===And, 
here is the wsdl that Axis2 
produces:===http://org.apache.axis2/xsd" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:soap=" 
http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:tns="http://org.apache.axis2/ " 
targetNamespace="http://org.apache.axis2/">http://www.w3.org/2001/XMLSchema 
" xmlns:ns1="http://org.apache.axis2/xsd" 
targetNamespace="http://org.apache.axis2/xsd" 
elementFormDefault="unqualified" attributeFormDefault="unqualified"> 
 
 
 
http://schemas.xmlsoap.org/soap/http" 
style="document" />http://www.org.apache.axis2" 
/>http://www.org.apache.axis2" 
/>http://www.org.apache.axis2 
" 
/>http://localhost:8080/axis2/services/XmlEcho" 
/>=== 
**This 
e-mail contains privileged attorney-client communications and/or 
confidential information, and is only for the use by the intended recipient. 
Receipt by an unintended recipient does not constitute a waiver of any 
applicable privilege. Reading, disclosure, discussion, 
dissemination, distribution or copying of this information by anyone other 
than the intended recipient or his or her employees or agents is strictly 
prohibited.  If you have received this communication in error, 
please immediately notify us and delete the original material from your 
computer. Sempra Energy Trading Corp. (SET) is not the same company 
as SDG&E or SoCalGas, the utilities owned by SET's parent 
company.  SET is not regulated by the California Public Utilities 
Commission and you do not have to buy SET's products and services to 
continue to receive quality regulated service from the utilities. 
**


**
This e-mail contains privileged attorney-client communications and/or confidential information, and is only for the use by the intended recipient. Receipt by an unintended recipient does not constitute a waiver of any applicable privilege.

Reading, disclosure, discussion, dissemination, distribution or copying of this information by anyone other than the intended recipient or his or her employees or agents is strictly prohibited.  If you have received this communication in error, please immediately notify us and delete the original material from your computer.

Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or SoCalGas, the utilities owned by SET's parent company.  SET is not regulated by the California P

Re: problem with C# client of axis2 service

2006-04-17 Thread Anne Thomas Manes
First -- the  issue applies only to Axis1 using rpc/encoded. Second, your response message doesn't correspond with your WSDL. Your WSDL is telling .NET to expect a response message like this:
    xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/">          
http://org.apache.axis2/xsd">                     [anyType content]              
How is it that you produced the response message that you did?AnneOn 4/17/06, Bennett, Derek <
[EMAIL PROTECTED]> wrote:I have created a service, XmlEcho, which takes a String and outputs the same String.
I am running the service in axis2 running within an out-of-the-box local JBoss server.A simple Java client using the axis2 client jar(s) runs perfectly.However, a simple C# client created by using the "WebReference" facility within Visual Studio 2005 to gets a null response object. I have already tried adding
to my system.xml based on a thread from earlier this week.Does anyone have any advice regarding how to get C# and Visual Studio working with Axis2?
The xml of the response looks like this:===
http://schemas.xmlsoap.org/soap/envelope/">http://hdayservice.result.com
" xmlns:tns="http://org.apache.axis2/">Foobar
===And, here is the wsdl that Axis2 produces:===http://org.apache.axis2/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://org.apache.axis2/
" targetNamespace="http://org.apache.axis2/">http://www.w3.org/2001/XMLSchema
" xmlns:ns1="http://org.apache.axis2/xsd" targetNamespace="http://org.apache.axis2/xsd" elementFormDefault="unqualified" attributeFormDefault="unqualified">



http://schemas.xmlsoap.org/soap/http" style="document" />http://www.org.apache.axis2" />http://www.org.apache.axis2" />http://www.org.apache.axis2
" />http://localhost:8080/axis2/services/XmlEcho" />===
**This e-mail contains privileged attorney-client communications and/or confidential information, and is only for the use by the intended recipient. Receipt by an unintended recipient does not constitute a waiver of any applicable privilege.
Reading, disclosure, discussion, dissemination, distribution or copying of this information by anyone other than the intended recipient or his or her employees or agents is strictly prohibited.  If you have received this communication in error, please immediately notify us and delete the original material from your computer.
Sempra Energy Trading Corp. (SET) is not the same company as SDG&E or SoCalGas, the utilities owned by SET's parent company.  SET is not regulated by the California Public Utilities Commission and you do not have to buy SET's products and services to continue to receive quality regulated service from the utilities.
**