Re: Invoking non-C wsdl

2008-03-27 Thread Andre Coelho
I currently have a c++ program that i want to comunicate with a java
webservice.
I was trying to figure out by teh examples but i have one doubt.

I already have a comunication on my AS application and I only do something
like:

server.loadWSDL(webserviceURL + calculator?wsdl);
var token:AsyncToken = server.add.send(1,2);
token.addResponder(new Responder(addResult, onFault));

and it works like a charm

I saw on the examples this:

   Calculator ws (endpoint);
   ws.add(1,2);


So, my question is: do I really have to instantiate a Calculator class?
cant i have like a generic ws that i can call methods that aren't defined in
C?
I'm using Axis C++, as u can notice.

I hope i made my self clear


Re: Header parameters being ignored

2008-03-27 Thread Dimuthu Gamage
Hi Sérgio,

Hm, Actually you will face a problem if you try to add headers
manually. Because currently axis2_svc_client doesnt have a way to get
response headers. So there is an API change needed. Please correct me
if I m wrong on this.

I was thinking implement the thing in this way. Say you have a
operation so that it has one input message, one input header one
output header, I m assuming there is a function called
get_response_header.


axis2_stub_op_exampleOp(axis2_stub_t *stub, adb_input_t *input,
adb_input_header_t *header_in, adb_out_header_t **header_out)
{
   /* the following part should be added before send_receive call */
   axiom_node_t * header1;
   header1 = adb_input_header_serialize(header_in, env, NULL, NULL,
AXIS2_TRUE, NULL, NULL);
   svc_client = axis2_stub_get_svc_client(stub, env); //this is already there

   axis2_svc_client_add_header(svc_client, env, header1);


   /* this is after send recieve */
   axutil_array_list_t * headers = axis2_svc_client_get_response_headers(..);
   header_node = (adb_out_header_t *) axutil_array_list_get(headers, env, 0);

  *out_header = adb_output_header_create(env);
  adb_output_header_deserialize(*out_header, env, header_node, NULL,
AXIS2_FALSE ) ;

}

Anyway you won't be able to handle that manually since currently axis2
api doesn't have a function to get output headers :(. I will raise a
JIRA on this.

Thanks
Dimuthu


On Thu, Mar 27, 2008 at 3:56 PM, Sérgio Gomes [EMAIL PROTECTED] wrote:
 Hi Dimuthu,

  Thanks for the update, let me know if you'd like me to do some testing
  once it's done.

  In the meantime, is there any way I can overcome this, by, say,
  providing the header part of the XML myself?

  Cheers,
  Sérgio

  ---


 On Thu, Mar 27, 2008 at 4:22 AM, Dimuthu Gamage [EMAIL PROTECTED] wrote:
   Hi Sérgio,
Currently WSDL2C doesn't support picking headers from the wsdl. The
classes are generated because it support in wsdl2java tool. Anyway I m
right now working in that and the class name problem. Hope I can fix
this for the client side within this week
  
Thanks
Dimuthu
  
  
  
On Thu, Mar 27, 2008 at 2:30 AM, Sérgio Gomes [EMAIL PROTECTED] wrote:
 Hello again,

  When sending my SOAP messages, I noticed that the headers were always
  empty, even though the WSDL2C tool generated support for the header
  fields:

  adb_getAllAdWordsCampaignsResponse_t*
 axis2_stub_op_CampaignService_getAllAdWordsCampaigns(
  axis2_stub_t *stub, const axutil_env_t *env,

  adb_getAllAdWordsCampaigns_t* _getAllAdWordsCampaigns,

  adb_useragent_t* _useragent22,

  adb_password_t* _password23,
 adb_email_t* 
 _email24,

  adb_clientEmail_t* _clientEmail25,

  adb_clientCustomerId_t* _clientCustomerId26,

  adb_developerToken_t* _developerToken27,

  adb_applicationToken_t* _applicationToken28);

  (There is also a bug that prevents the correct generation of the class
  names, but it has already been confirmed and will be fixed, according
  to the reply I received when I posted that issue)
  (WSDL can be found at
  https://adwords.google.com/api/adwords/v11/CampaignService?wsdl )

  As you can see, the function header has all the items that should
  appear on the SOAP header (useragent, password, etc), yet when I
  analyzed the generated .c file, I noticed that these parameters were
  being used nowhere, and thus the header would always be empty.

  Any tips on this issue? Also, is there an alternate way to set the
  outgoing SOAP header, so that I can work around the issue?


  Thanks,
  Sérgio

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


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

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



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



Re: Failed in creating DLL

2008-03-27 Thread Senaka Fernando
 No I am not using IIS. I am using the simple axis server.

In that case, we haven't had any issues before. There are some users who
had trouble with IIS, but AFAIK they've succeeded with Simple Axis2 HTTP
Server. I believe that you might be missing something here.

In your environment, you should be having several files in the folder of
the VPMSService service (AXIS2C_HOME/services/VPMSService). Have you not
copied some of them to your client's environment?

Regards,
Senaka


 Regards
 Sunil Pandit
 RD , CSC FSG Austin
 (512)2755792

 Computer Sciences Corporation
 Registered Office: 2100 East Grand Avenue, El Segundo California 90245,
 USA
 Registered in USA No: C-489-59

 

 This is a PRIVATE message. If you are not the intended recipient, please
 delete without copying and kindly advise us by e-mail of the mistake in
 delivery.
 NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
 any order or other contract unless pursuant to explicit written agreement
 or government initiative expressly permitting the use of e-mail for such
 purpose.
 





  Senaka Fernando
  [EMAIL PROTECTED]
 To
  03/27/2008 01:42  Apache AXIS C User List
  AMaxis-c-user@ws.apache.org
 cc

  Please respond to Subject
   Apache AXIS C   Re: Failed in creating DLL
 User List
  [EMAIL PROTECTED]
 pache.org







 Hi Sunil,

 So are you using IIS? If so, this is an issue, that has already been
 reported, a patch has also been submitted. I will have this fixed by
 Friday evening.

 Regards,
 Senaka

 On Wed, 2008-03-26 at 21:59 -0500, Sunil Pandit wrote:
 The service is C implementation . It does uses one dll other than the axis
 and runtime DLL. That DLL is in path.

 Thanks
 Sunil Pandit
 RD , CSC FSG Austin
 (512)2755792

 Computer Sciences Corporation
 Registered Office: 2100 East Grand Avenue, El Segundo California 90245,
 USA
 Registered in USA No: C-489-59


 


 This is a PRIVATE message. If you are not the intended recipient, please
 delete without copying and kindly advise us by e-mail of the mistake in
 delivery.
 NOTE: Regardless of content, this e-mail shall not operate to bind CSC
 to
 any order or other contract unless pursuant to explicit written
 agreement
 or government initiative expressly permitting the use of e-mail for such
 purpose.

 






  Senaka Fernando
  [EMAIL PROTECTED]

 To
  03/26/2008 05:30  Apache AXIS C User List
  PMaxis-c-user@ws.apache.org

 cc

  Please respond to
 Subject
   Apache AXIS C   Re: Failed in creating DLL
 User List
  [EMAIL PROTECTED]
 pache.org







 Hi Sunil,

 Few clarifications,

 1. Is your service using any C++ code?
 2. Is your service dependant on any other library other than the
 runtime?

 Regards,
 Senaka

  Nandika ,
 
  The service in both the environments using the same DLL's and also the
  same
  runtime DLL . The only difference is Windows server vs . Windows XP.
 
  Regards
  Sunil Pandit
  RD , CSC FSG Austin
  (512)2755792
 
  Computer Sciences Corporation
  Registered Office: 2100 East Grand Avenue, El Segundo California
 90245,
  USA
  Registered in USA No: C-489-59
 
 

 


 
  This is a PRIVATE message. If you are not the intended recipient,
 please
  delete without copying and kindly advise us by e-mail of the mistake
 in
  delivery.
  NOTE: Regardless of content, this e-mail shall not operate to bind CSC
 to
  any order or other contract unless pursuant to explicit written
 agreement
  or government initiative expressly 

Re: Failed in creating DLL

2008-03-27 Thread Senaka Fernando
Hi Sunil,

you are most welcome.

Regards,
Senaka

 Hello Again ,

 Thank you all for your response. This issue has been resolved. There was
 two fold problem .

 I have an IE7 on my machine and it has added some dependency (DWMAPI.DLL)
 to axutil . This particular DLL is avilable only on VISTA . So I had in
 uninstall IE7 and then install IE6.

 The application was using third party DLL thought I could see this DLL in
 dependency walker , LoadLibrary was failing to locate this DLL. I had to
 modify axisutil code to add some diagnostic messages to get this error.

 Thanks again !.

 Regards
 Sunil Pandit
 RD , CSC FSG Austin
 (512)2755792

 Computer Sciences Corporation
 Registered Office: 2100 East Grand Avenue, El Segundo California 90245,
 USA
 Registered in USA No: C-489-59

 

 This is a PRIVATE message. If you are not the intended recipient, please
 delete without copying and kindly advise us by e-mail of the mistake in
 delivery.
 NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
 any order or other contract unless pursuant to explicit written agreement
 or government initiative expressly permitting the use of e-mail for such
 purpose.
 





  Senaka Fernando
  [EMAIL PROTECTED]
 To
  03/27/2008 03:35  Apache AXIS C User List
  PMaxis-c-user@ws.apache.org
 cc

  Please respond to Subject
   Apache AXIS C   Re: Failed in creating DLL
 User List
  [EMAIL PROTECTED]
 pache.org







 No I am not using IIS. I am using the simple axis server.

 In that case, we haven't had any issues before. There are some users who
 had trouble with IIS, but AFAIK they've succeeded with Simple Axis2 HTTP
 Server. I believe that you might be missing something here.

 In your environment, you should be having several files in the folder of
 the VPMSService service (AXIS2C_HOME/services/VPMSService). Have you not
 copied some of them to your client's environment?

 Regards,
 Senaka


 Regards
 Sunil Pandit
 RD , CSC FSG Austin
 (512)2755792

 Computer Sciences Corporation
 Registered Office: 2100 East Grand Avenue, El Segundo California 90245,
 USA
 Registered in USA No: C-489-59


 


 This is a PRIVATE message. If you are not the intended recipient, please
 delete without copying and kindly advise us by e-mail of the mistake in
 delivery.
 NOTE: Regardless of content, this e-mail shall not operate to bind CSC
 to
 any order or other contract unless pursuant to explicit written
 agreement
 or government initiative expressly permitting the use of e-mail for such
 purpose.

 






  Senaka Fernando
  [EMAIL PROTECTED]

 To
  03/27/2008 01:42  Apache AXIS C User List
  AMaxis-c-user@ws.apache.org

 cc

  Please respond to
 Subject
   Apache AXIS C   Re: Failed in creating DLL
 User List
  [EMAIL PROTECTED]
 pache.org







 Hi Sunil,

 So are you using IIS? If so, this is an issue, that has already been
 reported, a patch has also been submitted. I will have this fixed by
 Friday evening.

 Regards,
 Senaka

 On Wed, 2008-03-26 at 21:59 -0500, Sunil Pandit wrote:
 The service is C implementation . It does uses one dll other than the
 axis
 and runtime DLL. That DLL is in path.

 Thanks
 Sunil Pandit
 RD , CSC FSG Austin
 (512)2755792

 Computer Sciences Corporation
 Registered Office: 2100 East Grand Avenue, El Segundo California 90245,
 USA
 Registered in USA No: C-489-59



 



 This is a PRIVATE message. If you are not the intended recipient,
 please
 delete without copying and kindly 

Re: Header parameters being ignored

2008-03-27 Thread Sérgio Gomes
Hi Dimuthu,

I looked around in the source code quite a bit and wasn't able to find
any way to get the envelope node that I required to create a header
node. I'd have to get the message context somehow, which I don't think
makes sense from axis2_svc_client 's point of view (since presumably
one svc_client can emit many messages and thus have many message
contexts in its lifetime). That would indeed coincide with your
analysis that an API change would be needed. Of course, my analysis
may be completely wrong, since I'm an outsider to the code and I was
just poking around trying to scratch my itch :)

Anyway, regarding your solution for the code generator, that looks
like what's needed, that is, assuming that adb_input_header_t and
adb_out_header_t would be the ADB models for whatever objects we were
trying to set in the header (say, a simpleType with a string
restriction). I'll give it a try tomorrow to adapt that tentative code
to the code I had generated and see how it goes.

Cheers,
Sérgio

---

On Thu, Mar 27, 2008 at 6:31 PM, Dimuthu Gamage [EMAIL PROTECTED] wrote:
 Hi Sérgio,

  Hm, Actually you will face a problem if you try to add headers
  manually. Because currently axis2_svc_client doesnt have a way to get
  response headers. So there is an API change needed. Please correct me
  if I m wrong on this.

  I was thinking implement the thing in this way. Say you have a
  operation so that it has one input message, one input header one
  output header, I m assuming there is a function called
  get_response_header.


  axis2_stub_op_exampleOp(axis2_stub_t *stub, adb_input_t *input,
  adb_input_header_t *header_in, adb_out_header_t **header_out)
  {
/* the following part should be added before send_receive call */
axiom_node_t * header1;
header1 = adb_input_header_serialize(header_in, env, NULL, NULL,
  AXIS2_TRUE, NULL, NULL);
svc_client = axis2_stub_get_svc_client(stub, env); //this is already there

axis2_svc_client_add_header(svc_client, env, header1);


/* this is after send recieve */
axutil_array_list_t * headers = axis2_svc_client_get_response_headers(..);
header_node = (adb_out_header_t *) axutil_array_list_get(headers, env, 0);

   *out_header = adb_output_header_create(env);
   adb_output_header_deserialize(*out_header, env, header_node, NULL,
  AXIS2_FALSE ) ;

  }

  Anyway you won't be able to handle that manually since currently axis2
  api doesn't have a function to get output headers :(. I will raise a
  JIRA on this.

  Thanks
  Dimuthu




  On Thu, Mar 27, 2008 at 3:56 PM, Sérgio Gomes [EMAIL PROTECTED] wrote:
   Hi Dimuthu,
  
Thanks for the update, let me know if you'd like me to do some testing
once it's done.
  
In the meantime, is there any way I can overcome this, by, say,
providing the header part of the XML myself?
  
Cheers,
Sérgio
  
---
  
  
   On Thu, Mar 27, 2008 at 4:22 AM, Dimuthu Gamage [EMAIL PROTECTED] wrote:
 Hi Sérgio,
  Currently WSDL2C doesn't support picking headers from the wsdl. The
  classes are generated because it support in wsdl2java tool. Anyway I m
  right now working in that and the class name problem. Hope I can fix
  this for the client side within this week

  Thanks
  Dimuthu



  On Thu, Mar 27, 2008 at 2:30 AM, Sérgio Gomes [EMAIL PROTECTED] 
 wrote:
   Hello again,
  
When sending my SOAP messages, I noticed that the headers were 
 always
empty, even though the WSDL2C tool generated support for the header
fields:
  
adb_getAllAdWordsCampaignsResponse_t*
   axis2_stub_op_CampaignService_getAllAdWordsCampaigns(
axis2_stub_t *stub, const axutil_env_t *env,
  
adb_getAllAdWordsCampaigns_t* _getAllAdWordsCampaigns,
  
adb_useragent_t* _useragent22,
  
adb_password_t* _password23,
   adb_email_t* 
 _email24,
  
adb_clientEmail_t* _clientEmail25,
  
adb_clientCustomerId_t* _clientCustomerId26,
  
adb_developerToken_t* _developerToken27,
  
adb_applicationToken_t* _applicationToken28);
  
(There is also a bug that prevents the correct generation of the 
 class
names, but it has already been confirmed and will be fixed, 
 according
to the reply I received when I posted that issue)
(WSDL can be found at
https://adwords.google.com/api/adwords/v11/CampaignService?wsdl )
  
As you can see, the function header has all the items that should
appear on the SOAP header (useragent, password, etc), yet when I
analyzed the generated .c file, I noticed that these parameters were
being used nowhere, and thus the header would always be empty.
  
Any tips on this issue? Also, is there an alternate way to set the
outgoing SOAP header, so that I can work 

How to create Document / Literal WSDL with axis 1.3

2008-03-27 Thread sh_santosh

Dear All,


 1. How to create Document / Literal WSDL from java interface ?? or how to
create Java 2 WSDL using Document/ Literal.
 2. from document/literal WSDL to java classes(stub, skelton, serivces).

I am using Axis 1.3 , tomcat-5.5.20 and eclipse.

Please provide the command and arguments for java2wsdl and wsdl2java for
doc/lit.

is there any tool that help to generate java2wsdl and wsdl2java for doc/lit.




Regards
Santosh







-- 
View this message in context: 
http://www.nabble.com/How-to-create-Document---Literal-WSDL-with-axis-1.3-tp16323309p16323309.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Am i rightly building and deploying my java WS?

2008-03-27 Thread Charitha Kankanamge

You are describing two different deployment mechanisms.

1. AAR based deployment

You should create *.aar with proper structure as explained in 
http://ws.apache.org/axis2/1_3/quickstartguide.html#deploy


2. Deploying pojos using POJODeployer

This mechanism allows users to drop .class file and make that into a 
service.


Steps:
--
I. Open AXIS2_HOME/conf/axis2.xml and edit the following entry.
deployer extension=.class directory=pojo 
class=org.apache.axis2.deployment.POJODeployer/

II. Restart axis2 server
III. copy your .class file to AXIS2_HOME/repository/pojo

regards
Charitha
learn_n_share wrote:


is it possible to make a .aar file without having to write the xml stuff
(services.xml and other xml file)


Yalamanchi, Durga wrote:
 


This is what I tried successfully:

Create .aar file as attached and deploy that file either using the axis2
admin (I tried this) or placing the .aar file in
C:\apache\Tomcat-6.0\webapps\axis2\WEB-INF\services (for Tomcat deploy).

-Durga N. Yalamanchi

-Original Message-
From: learn_n_share [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2008 9:46 AM

To: axis-user@ws.apache.org
Subject: Am i rightly building and deploying my java WS?


Hi
for making my java web service, I simply follow these steps which enable
me
to publish the WS on the Axis2 home page's list of available services.
1) I make my java program and compile the .class file
2) I put the .class file in Axis2_home\webapps\pojo, i.e, i simply
make a
directory named pojo inside Axis2_home directory.
Thats it and my web service gets deployed, and is available in the list
of
services.



--
View this message in context:
http://www.nabble.com/Am-i-rightly-building-and-deploying-my-java-WS--tp
16301159p16301159.html
Sent from the Axis - User mailing list archive at Nabble.com.


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


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

   



 





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



Re: How to create Document / Literal WSDL with axis 1.3

2008-03-27 Thread Upul Godage
You can use Axis2 tools in the bin directory java2wsdl, wsdl2java like this.
java2wsdl generates document literal style WSDLs I think.

./java2wsdl.sh -cn test.Service -cp classes.jar

./wsdljava.sh -uri service.wsdl

Upul

On Thu, Mar 27, 2008 at 12:55 PM, sh_santosh [EMAIL PROTECTED]
wrote:


 Dear All,


  1. How to create Document / Literal WSDL from java interface ?? or how to
 create Java 2 WSDL using Document/ Literal.
  2. from document/literal WSDL to java classes(stub, skelton, serivces).

 I am using Axis 1.3 , tomcat-5.5.20 and eclipse.

 Please provide the command and arguments for java2wsdl and wsdl2java for
 doc/lit.

 is there any tool that help to generate java2wsdl and wsdl2java for
 doc/lit.




 Regards
 Santosh







 --
 View this message in context:
 http://www.nabble.com/How-to-create-Document---Literal-WSDL-with-axis-1.3-tp16323309p16323309.html
 Sent from the Axis - User mailing list archive at Nabble.com.


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




Returning complex values

2008-03-27 Thread Umut DOĞAN
I am using Axis2 in my project as a web service.
The problem arises when i want to return a complex value from service using
client.

In service i created a KeyframeData class and use two variables to store
required information
*private String timeCode;
**private** byte**[] imageData;*
I created an object of this class  - *KeyframeData keyframe =
newKeyframeData();
*

Then created an array list with KeyframeData type -* ListKeyframeData
keyframes = new ArrayListKeyframeData();*

I set KeyframeData object's variables using appropriate setter methods.

Then return as this - *(KeyframeData[]) (keyframes.toArray(new
KeyframeData[keyframes.size()]));*

The problem arises here, while running it gives an error - *Unexpected
subelement timeCode*.

I use ADB binding and there is a stub file, services.xml file and a wsdl
file which i created after several steps.



Then i remove timeCode from class declaration; this time it just returned
imageData. Everything seemed fine, but i loop 14 times in a folder and read
them into byte array, Service reads all, then when i return to client it
just reads ten values

8th byte array and 9th one are like these: (Copied from log4j log file. As
can be seen 9th one looks weird. And then 10th one is similar with 8th byte
array)

40078 [main] DEBUG httpclient.wire.content  - 
zbTyBxjgY59jV/ToJ0ZDAeFBwG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Ad7perRXdrH5cTRpuKjJBYHOCevOe/NLrHhnRtbQLe2yGQfduIgIpxn/bXG7Ho2aoeGv+PGL/rqf/Qq3n6j8KOqA8yltl0HxDc2rBbiOCSW1bIwXRyI93puAYHB4JB5Gc1tavozW99bW0M2yK5SGdRyTF9pSIyKPbJbH1rK8U/8jXqn/X4f/R0ddLrf/IW0j/r0sP8A0CGip0Kp7M2rQOYoI3bd9mQQx+ixgnagzzhe1bOjXpkbymUdSoI9h3yayLXrJ9f6mtDQ/wDj5X/eb+RrN7kvdmnPOYoGYddrZ/piqX9oSe9Wbz/j2f6NWbVkH//Z/ax26:imageData/ns:returnns:return
type=com.cyangate.ffmpeg.services.KeyframeData

Axis2: Strange problem...

2008-03-27 Thread Simon Steinacker

Hello,

I am sending this envelope
?xml version=1.0 encoding=UTF-8?soapenv:Envelope 
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Bodyquery:AdhocQueryRequest 
xmlns:query=urn:oasis:names:tc:ebxml-regrep:xsd:query:3.0 
xmlns:rim=urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0query:ResponseOption 
returnComposedObjects=true returnType=LeafClass /rim:AdhocQuery 
id=urn:uuid:5c4f972b-d56b-40ac-a5fc-c8ca9b40b9d4rim:Slot 
name=$XDSDocumentEntryUniqueIdrim:ValueListrim:Value('1.2.3.1206462180874')/rim:Value/rim:ValueList/rim:Slot/rim:AdhocQuery/query:AdhocQueryRequest/soapenv:Body/soapenv:Envelope


over plain http to my axis2 server. And on the client side everything 
seems ok, but what I receive on the server side is really strange:
?xml version='1.0' encoding='utf-8'?soapenv:Envelope 
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Bodysoapenv:Envelopesoapenv:Bodyquery:AdhocQueryRequest 
xmlns:query=urn:oasis:names:tc:ebxml-regrep:xsd:query:3.0 
xmlns:rim=urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0query:ResponseOption 
returnComposedObjects=true returnType=LeafClass /rim:AdhocQuery 
id=urn:uuid:5c4f972b-d56b-40ac-a5fc-c8ca9b40b9d4rim:Slot 
name=$XDSDocumentEntryUniqueIdrim:ValueListrim:Value('1.2.3.1206462180874')/rim:Value/rim:ValueList/rim:Slot/rim:AdhocQuery/query:AdhocQueryRequest/soapenv:Body/soapenv:Envelope/soapenv:Body/soapenv:Envelope


You will notice, that inside The body element, there starts another 
Envelope...

How can this happen, I am really confused!

thanks for your help,
Simon

--
DI Simon Steinacker
Softwareentwicklung
Team [EMAIL PROTECTED]

[EMAIL PROTECTED] - Wir vernetzen Gesundheit
Geschäftsstelle: A-6020 Innsbruck, Leopoldstr. 1
Tel:  0512/576523-245
Fax:  0512/576523-70
E-Mail:   [EMAIL PROTECTED] 
Web:  http://www.healthatnet.at 
_

ITH icoserve technology for healthcare GmbH
6020 Innsbruck, Innrain 98
Firmenbuchnummer: FN 174117f
Firmenbuchgericht: Innsbruck
DVR: 0983039
www.ith-icoserve.com 



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



(DataRetrievalException) exception when cheking Axis2's Version sample

2008-03-27 Thread program77

org.apache.axis2.dataretrieval.DataRetrievalException:
org.apache.xml.serializer.ToXMLSAXHandler cannot be cast to
org.apache.xml.serializer.SerializationHandler

org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(AxisDataLocatorImpl.java:84)
org.apache.axis2.description.AxisService.getData(AxisService.java:2195)
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1139)

org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1077)

org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:280)
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:229)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)




why?

(I use Tomcat. 5.0 and war of Axis2 1.3)
-- 
View this message in context: 
http://www.nabble.com/%28DataRetrievalException%29-exception-when-cheking-Axis2%27s-Version-sample-tp16323727p16323727.html
Sent from the Axis - User mailing list archive at Nabble.com.


Problem with xs:pattern and IsBasicLatin

2008-03-27 Thread Weck, Andreas
Hallo,
 
i have the following type-definition in a webservice:
xs:element name=VerantwortlichePerson
xs:simpleType
  xs:restriction base=xs:string
xs:maxLength value=50/
xs:minLength value=1/
xs:pattern value=[\p{IsBasicLatin}\p{IsLatin-1Supplement}]+/
  /xs:restriction
/xs:simpleType

/xs:element
 
This generates me a class ( with wsdl2java) with the method:
public void setVerantwortlichePerson_type0(java.lang.String param) {
if
(java.lang.String.valueOf(param).matches([\\p{IsBasicLatin}\\p{IsLatin-
1Supplement}]+)) {
this.localVerantwortlichePerson_type0 = param;
} else {
throw new java.lang.RuntimeException();
}
}
 
and if i run my appliction and call the method
setVerantwortlichePerson_type0(Andreas) i get the following Exception:
Exception in thread main java.util.regex.PatternSyntaxException:
Unknown character property name {BasicLatin} near index 16 
[\p{IsBasicLatin}\p{IsLatin-1Supplement}]+
  ^
So what is here wrong? Can somebody help me???
Regards,
Andreas

 


sharing session key between stubs

2008-03-27 Thread Michelantonio Trizio
Hi,

I have this problem.
I 'm developing  web service with the axis2 plugin  for eclipse.
I have several services in a service group and I have created the stubs for
each service.
Session on a single service works.
But now I have the need to share the session key between all the stubs that
i have for the services in the same service group.
How can I do?

Thanks in advance,

Michelantonio

-- 
It's creepy, but here we are, the Pilgrims, the crackpots of our time,
trying to establish our own alternate reality. To build a world out of rocks
and chaos. What it's going to be, I don't know. Even after all that rushing
around, where we've ended up is the middle of nowhere in the middle of the
night. And maybe knowing isn't the point. Where we're standing right now, in
the ruins in the dark, what we build could be anything. [Choke - Chuck
Palahniuk]


[Axis2][1.4] Dropping AXIS2-3616 - Run the JAX-WS 2.1 TCK

2008-03-27 Thread Davanum Srinivas
Team,

Looks like we don't have anyone willing/able to take on the task of
setting up and running the JAXWS 2.1 TCK. Just to lay out the current
situation, Apache has access to the JAXWS 2.1 Stand alone TCK. CXF
team already has a test harness in a private Apache SVN to execute the
TCK. There's a jaxws-tck mailing list as well. We just don't have any
volunteer who is willing to take on the task of extending this test
harness with axis2 stuff and run the TCK and help with bug fixing.

So unfortunately we will have to drop running TCK as a task for 1.4
Release unless some committers step up to shoulder the task.

thanks,
dims

-- 
Davanum Srinivas :: http://davanum.wordpress.com

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



Where to retrieve the call or stub timeout on the server side?

2008-03-27 Thread Mel T

I have an axis client that sets the Call and/or Stub timeout before making
the call. 

I want to read that timeout on the server side. 

Whether I call

  MessageContext.getCurrentContext().getTimeout();
or
  MessageContext.getCurrentContext().getSession().getTimeout();


I do not get the timeout as specified by the client. Is there a way to read
the client timeout on the server side?

The reason I want that is to allow to stop the processing of the call when
the timeout is reached. I would like to allow clients to specify timeouts
without adding an explicit argument to the call.

--
Mel T



-- 
View this message in context: 
http://www.nabble.com/Where-to-retrieve-the-call-or-stub-timeout-on-the-server-side--tp16325250p16325250.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Type Mapping java.lang.Integer int after java2wsdl and wsdl2java

2008-03-27 Thread Martin Clemens
I am trying to generate an Axis Webservice from my existing J2EE-EJB and
have the following issue:

1. Running java2wsdl over the EJB Remote Interface, which contains all
method signatures and references their return value objects.
2. Running wsdl2java over the generated wsdl file to generate the
Webservice Server- and Client-Code

I am using Axis Version 1.4 (tried 1.2, 1.3 also, same issue)

Original Interface (simplified):

package org.axis.test;
public interface PersonManager {
   public Long getRandomPersonId(Long fromInternalId, Long
toInternalId); }


Generated Interface:

package org.axis.test;
public interface PersonManager extends java.rmi.Remote {
   public long getRandomPersonId(long in0, long in1) throws
java.rmi.RemoteException; }


Ant tasks:
axis-java2wsdl typemappingversion=1.2 style=document use=literal
output=srcgen/personmanager.wsdl location=file:unkown
namespace=http://personmanager.test.axis.org;
classname=org.axis.test.PersonManager/

axis-wsdl2java typemappingversion=1.2 wraparrays=true
url=srcgen/personmanager.wsdl output=srcgen serverside=true
deployscope=Application/


Does anybody know why the original java.lang.Long gets to java type long
(scalar) after the java2wsdl/wsdl2java process and how to change this?
It gets generated correct, when I just use rpc encoded style with
typemappingversion 1.2 (not so if typemapping=1.1).
Looks like typemappingversion gets ignored as soon as style is not RPC
AND ENCODED,

I have to use document/literal style because we want to include complex
types with arrays later, and may have interop with .NET clients.

RPC style generated wsdl (types only):
   wsdl:message name=getRandomPersonIdResponse
  wsdl:part name=getRandomPersonIdReturn type=soapenc:long/
   /wsdl:message
   wsdl:message name=getRandomPersonIdRequest
  wsdl:part name=in0 type=soapenc:long/
  wsdl:part name=in1 type=soapenc:long/
   /wsdl:message


DOC/LIT generated wsdl (types only):
  wsdl:types
schema elementFormDefault=qualified
targetNamespace=http://personmanager.test.axis.org;
xmlns=http://www.w3.org/2001/XMLSchema;
 element name=in0 type=xsd:long/
 element name=in1 type=xsd:long/
 element name=getRandomPersonIdReturn type=xsd:long/
/schema
   /wsdl:types
   wsdl:message name=getRandomPersonIdResponse
  wsdl:part element=impl:getRandomPersonIdReturn
name=getRandomPersonIdReturn/
   /wsdl:message
   wsdl:message name=getRandomPersonIdRequest
  wsdl:part element=impl:in0 name=in0/
  wsdl:part element=impl:in1 name=in1/
   /wsdl:message



Thanks for help,
Clemens Martin


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



Internationalization Unicode

2008-03-27 Thread Luis Costa
 

Hi all

 

I'm developing a web service, I use axis2 code generator to generate server 
side code from wsdl and I have already the web service working.

Although I have some doubts about how handle with deferent characters (Chinese 
for example)

Question:

Do axis 2 do any kind of treatment (Unicode) of those characters?

What is advisable and what are the currently available solutions to deal with 
these situations?

 

 

 

Thank you for your attention and best regards,

 

Luís Costa

Software Developer

 

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

 

www.alert-online.pt http://www.alert-online.pt/ 

 

 

ALERT Life Sciences Computing, S.A.

Edifício Lake Towers - pisos 7, 8 e 9

Rua Daciano Baptista Marques, n.º 245

4400-617 Vila Nova de Gaia

Portugal

Tel.: +351 22 832 89 80

Fax.: +351 22 832 89 82

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

 

This e-mail is privileged, confidential and contains private information. Any 
reading, retention, distribution or copying of this communication by any person 
other than its intended recipient is prohibited.

 

 



[Axis2] Renaming ServiceGroupId

2008-03-27 Thread Matthias.Gaiser
Hi all,

 

I am currently getting started in the session handling with axis2. When
I am using the soapsession approach, axis2 generates the following
header in the SOAP response.

axis2:ServiceGroupId
xmlns:axis2=http://ws.apache.org/namespaces/axis2;.../
axis2:ServiceGroupId

 

Now what I want to do is customizing this tag in order to reflect that
this Id belongs to my application. I want to rename it  to eg:

myns:sessionID xmlns:myns=http://example.com;.../myns:sessionID

 

Is there any configurative way to do this which does not involve
actually changing the axis2 sources?

 

Thanks in advance,

Matthias.



Documentation tuning Axis2 webservices?

2008-03-27 Thread Davy Toch

Hi,

Is there any documentation on how to tune Axis2 webservices, e.g. if we 
have 2 webservices in the Axis2 war like:


   Axis2Container.war/
   WEB-INF/
  services/
 Service1.aar
 Service2.aar

then:

1) is there a way to prioritize Service1 so it has a higher execution 
priority then Service2
2) is there a way to limit the number of instances of every webservice 
(similar to EJB instance pooling)


Best regards,
Davy Toch




- Disclaimer: http://www.minfin.fgov.be/disclaimer.htm

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



RE: Supporting multiple versions of the same service with Axis2

2008-03-27 Thread O Aiken


Hello Axis Team,
I need to support multiple versions of a Service on one application  
server and I'm trying to find the most elegant way to do it.
So far the best solution I can find is to have the version built into  
the pathname of the supporting classes - ie :

net.brokerhub.xml.market_1_3.Test
vs.
net.brokerhub.xml.market_1_2.Test

This was discussed somewhat in 2006 - and I'm wondering if there's  
been any consensus, perhaps by creative use of class-loaders.

thank you  regards,
-OA
***

List:   axis-user
Subject:RE: Supporting multiple versions of the same service with  
Axis2

From:   Gul Onural onural () nortel ! com
Date:   2006-12-04 1:30:57
Message-ID: 87AC5F88F03E6249AEA68D40BD3E00BE0CB9C5E5 () zcarhxm2 !  
corp ! nortel ! com

[Download message RAW]


Thanks Deepal. I have filed a JIRA for this issue
(http://issues.apache.org/jira/browse/AXIS2-1810).

I think this will be a very important thing to have in Axis2 framework.
Without a solid versioning
strategy, developing commercial products with Axis2 will be very
challenging. I believe backwards compatibility
(using ability of service versioning) is one of the key requirements of
many commercial products.

Gul

-Original Message-
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 03, 2006 8:03 PM
To: axis-user@ws.apache.org
Subject: Re: Supporting multiple versions of the same service with Axis2

Hi Gul;
We dont have service version support , but I hope we can have that
feature soon in Axis2.

Thanks
Deepal


 Any recommendation from Axis2 team members or architects on this  
issue

?



 _
 *From:  * Onural, Gul (CAR:SI12)
 *Sent:  * Saturday, December 02, 2006 3:17 PM
 *To:* axis-user@ws.apache.org
 *Subject:   * Supporting multiple versions of the same service
 with Axis2


 I want to be able to support multiple versions of my service on the
 same system.
 The pattern I am trying to use is :
 - Keep the service name the same
 - Change wsdl namespace url to reflect the change in the wsdl
 - Change the location (target EPR) of the service fro the new version
 deployment For example for v1 :
 Service Name = MyService
 Wsdl Namespace = _http://www.mycompany.com/MyService1_
 Location = _http://localhost/axis2/services/v1.0_
 For example for v2 :
 Service Name = MyService
 Wsdl Namespace = _http://www.mycompany.com/MyService2_
 Location = _http://localhost/axis2/services/v2.0_
 In order to do that I can create two directories under services, one
 for v1.0 and one for v2.0.
 However I don't know how to change repository url (in Axis2 web.xml)
 to support this pattern. In the web.xml, there is a parameter for the
 repository url :
param-nameaxis2.repository.url/param-name
param-valuehttp://localhost/services/v0.1/param-value
 How can I configure Axis2 to support different repository directories
?
 If this is not possible, what is the proper way of deploying multiple
 versions of the same service to Axis2 ?
 Thanks
 Gul


--
Thanks,
Deepal

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



Using SWA with ADB in axis2

2008-03-27 Thread ndthuy

Hi,

Anyone has an example for using SwA with ADB in axis2 ?
Like how to write a wsdl for it. 

Thanks
-- 
View this message in context: 
http://www.nabble.com/Using-SWA-with-ADB-in-axis2-tp16335414p16335414.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Generating Stubs

2008-03-27 Thread O Aiken


Hi,

When generating stubs with Axis2 1.3  -- some of the class files are  
generated twice, once with a number appended.


ie. this wsdl snippit :

==
wsdl:message name=loginRequest
wsdl:part element=wsv:loginRequest name=loginRequest/
/wsdl:message
==

will result in 2 classes :

LoginRequest.java
LoginRequest15.java


Does anybody know why ?

thank you  regards,

-O Aiken

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



Re: Using SWA with ADB in axis2

2008-03-27 Thread Martin Gainty
2 options
1)Take an ADB wsdl and modify operations and parameters
2)Take a properly formed POJO and create the WSDL via Java2WSDL (default
databinding IS ADB)

Martin

- Original Message -
From: ndthuy [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Thursday, March 27, 2008 4:14 PM
Subject: Using SWA with ADB in axis2



 Hi,

 Anyone has an example for using SwA with ADB in axis2 ?
 Suppose I have this function:
 addContentFile(String userID, String password,
 String serviceID, DataHandler dataHandler,
 String relAddFilepathName, String contentType, String source)

 How do I write a wsdl for it so I can generate the client and server using
 ADB.

 Thanks
 --
 View this message in context:
http://www.nabble.com/Using-SWA-with-ADB-in-axis2-tp16335414p16335414.html
 Sent from the Axis - User mailing list archive at Nabble.com.


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


/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * License); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package samples.quickstart.service.adb;
import samples.quickstart.service.adb.xsd.GetPriceResponse;
import samples.quickstart.service.adb.xsd.Update;
import samples.quickstart.service.adb.xsd.GetPrice;

import java.util.HashMap;
public class StockQuoteServiceSkeleton implements StockQuoteServiceSkeletonInterface {
private HashMap map = new HashMap();

public void update(Update param0) {
map.put(param0.getSymbol(), new Double(param0.getPrice()));
}

public GetPriceResponse getPrice(GetPrice param1) {
Double price = (Double) map.get(param1.getSymbol());
double ret = 42;
if(price != null){
ret = price.doubleValue();
}
GetPriceResponse res =
new GetPriceResponse();
res.set_return(ret);
return res;
}
}


StockQuoteService.wsdl
Description: XML document
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Is it possible to point multiple WSDL's to the same Service class?

2008-03-27 Thread Raghu Upadhyayula
Is it possible to point multiple WSDL's to the same Service class?

 

Thanks

Raghu



Re: Generating Stubs

2008-03-27 Thread samir shaikh
you might want to paste the complete wsdl.


--- O Aiken [EMAIL PROTECTED] wrote:

 
 Hi,
 
 When generating stubs with Axis2 1.3  -- some of the
 class files are  
 generated twice, once with a number appended.
 
 ie. this wsdl snippit :
 
 ==
 wsdl:message name=loginRequest
  wsdl:part element=wsv:loginRequest
 name=loginRequest/
  /wsdl:message
 ==
 
 will result in 2 classes :
 
 LoginRequest.java
 LoginRequest15.java
 
 
 Does anybody know why ?
 
 thank you  regards,
 
 -O Aiken
 

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



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



[Axis2] WstxParsingException: Expected a text token, got START_ELEMENT - while passing array from Axis2 client to Axis2 service

2008-03-27 Thread Pantvaidya, Vishwajit
Using the suggestions from the case 2 mentioned in http://wso2.org/library/332, 
I wrote an Axis2 client to call my Axis2 service that has a string array as one 
of the params. But I got following error when the call executes:

org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxParsingException: Expected a 
text token, got START_ELEMENT.
 at [row,col {unknown-source}]: [1,401]
at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)

Any suggestions?

Here is the relevant snippet from my WSDL:

types
s:schema elementFormDefault=qualified 
targetNamespace=http://ws.selectica.com/ecm/;
s:element name=AssignUserToRoles
s:complexType
s:sequence
s:element name=SessionToken 
type=s:string/s:element
s:element name=Email 
type=s:string/s:element
s:element name=RoleId 
type=s:string maxOccurs=unbounded minOccurs=1/s:element
/s:sequence
/s:complexType
/s:element
s:element name=AssignUserToRolesResponse
s:complexType/s:complexType
/s:element
/s:schema
/types

wsdl:message name=AssignUserToRolesRequest
wsdl:part name=parameters 
element=tns:AssignUserToRoles/wsdl:part
/wsdl:message
wsdl:message name=AssignUserToRolesResponse
wsdl:part name=parameters 
element=tns:AssignUserToRolesResponse/wsdl:part
/wsdl:message

portType name=ECMServiceSoap
wsdl:operation name=AssignUserToRoles
wsdl:input 
message=tns:AssignUserToRolesRequest/wsdl:input
wsdl:output 
message=tns:AssignUserToRolesResponse/wsdl:output
/wsdl:operation
/portType

binding name=ECMServiceSoap type=tns:ECMServiceSoap
soap:binding transport=http://schemas.xmlsoap.org/soap/http; 
style=document/
operation name=AssignUserToRoles
soap:operation soapAction= style=document/
input
soap:body use=literal/
/input
output
soap:body use=literal/
/output
/operation
/binding
...


And here is the client code:

svcClient = new ServiceClient();
Options options = new Options();
options.setTo(new EndpointReference(serviceURL));
options.setAction(http://localhost:8080/services/ECMServiceSoap/AssignUserToRoles;);
svcClient.setOptions(options);

OMNamespace ns = fac.createOMNamespace(serviceNamespace, ns1);
payload = fac.createOMElement(AssignUserToRoles, ns);

OMElement value = fac.createOMElement(SessionToken, ns);
value.setText(sessionId);
payload.addChild(value);

OMElement value = fac.createOMElement(Email, ns);
value.setText(email);
payload.addChild(value);

//roles is a String[]
OMElement value = BeanUtil.getOMElement(new 
QName(ns.getNamespaceURI(),RoleId), roles, null, false, null);
payload.addChild(value);

OMElement responseElement=(OMElement) svcClient.sendReceive(payload);