Re: Endpoint Address

2009-11-25 Thread Supun Kamburugamuva
You can create a Jira. If you can find the problem please attach a patch as
well.

Thanks,
Supun..

On Wed, Nov 25, 2009 at 2:34 AM, Jose M Medina V 
jose_med...@wesamconsulting.com wrote:

 What is the procedure to get this work?

 Regards,

 On Nov 24, 2009, at 4:09 PM, Supun Kamburugamuva wrote:

 I think the way you get endpoint_ref is correct. But I'm not sure from your
 comment weather endpoint_ref is NULL or a filed inside endpoint_ref is NULL.
 In any case it should be a bug.

 Thanks,
 Supun..

 On Wed, Oct 21, 2009 at 11:55 PM, Jose M Medina V 
 jose_med...@wesamconsulting.com wrote:

 Hi, I try to get the target endpoint address in a services in Axis2c, I
 put the following code in the invoke function in the skeleton library:

 axis2_endpoint_ref_t *endpoint_ref = NULL;
 const axis2_char_t *address = NULL;
 .
 .
 .
 endpoint_ref = axis2_msg_ctx_get_to(msg_ctx, env);
   if(endpoint_ref)
   {
 AXIS2_LOG_DEBUG(env-log, AXIS2_LOG_SI, %s%s
 if(endpoint_ref),pdesWebServ-nombre_web,nombreFuncion);
 address = axis2_endpoint_ref_get_address(endpoint_ref, env);
 if (address)
 {
   AXIS2_LOG_DEBUG(env-log, AXIS2_LOG_SI, %s%s if
 (address),pdesWebServ-nombre_web,nombreFuncion);
 }
   }

 When I run this, I got NULL in endpoint_ref variable, so I don’t know it
 was something wrong with this code.
 It is the correct way to get the endpoint address or exists another way to
 get that info.

 Thank in advance.

   
 José M. Medina V.
 Wesam Consulting
 jose_med...@wesamconsulting.com
 Mobile: +58(416)613-3302 +58(414)019-0580
 Ofc: +58(212)959-4155 Ext. 204
 BB pin: 31E562BF
 Caracas - Venezuela









 --
 Software Engineer, WSO2 Inc
 http://wso2.org
 supunk.blogspot.com



 
 José M. Medina V.
 Wesam Consulting
 jose_med...@wesamconsulting.com
 Mobile: +58(416)613-3302 +58(414)019-0580
 Ofc: +58(212)959-4155 Ext. 204
 BB pin: 31E562BF
 Caracas - Venezuela









-- 
Software Engineer, WSO2 Inc
http://wso2.org
supunk.blogspot.com


Re: Axis2 Eclipse plugin

2009-11-25 Thread Håkon Sagehaug
Hi Jack,

I'm using the maven wsdl2java plugin for generating my stub, and if you also
have maven eclipse plugin, then this takes care of bulding a eclipse project
for you with the stubs. The tools including the eclipse plugin can be found
here[1]

cheers, Håkon

[1] http://ws.apache.org/axis2/tools/index.html

2009/11/24 Jack Sprat rexclaim...@yahoo.com

 Can anyone shed some light on this?

 If the Eclipse plugin is not an option then what is the best way to
 automate the task of running the WSDL2Java command?
 I've run this from a DOS prompt and then manually imported the generated
 classes into Eclipse but there must be a better way.

 Thanks.


 --- On *Tue, 11/24/09, Jack Sprat rexclaim...@yahoo.com* wrote:


 From: Jack Sprat rexclaim...@yahoo.com
 Subject: Axis2 Eclipse plugin
 To: axis-user@ws.apache.org
 Date: Tuesday, November 24, 2009, 7:28 AM


 I cannot seem to find the Axis2 Eclipse plugin for WSDL2Java.  I'm looking
 here:
 http://ws.apache.org/axis2/tools/1_0/eclipse/wsdl2java-plugin.html

 which takes me to the download page here:
 http://ws.apache.org/axis2/tools/index.html

 Every mirror under Code Generator Wizard shows a 404 not found error.  Am
 I looking in the wrong place?

 Thanks.






-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science(BCCS)
Uni BCCS/Uni Research
hakon.sageh...@uni.no, phone +47 55584125


Re: How to read parameter in WebService

2009-11-25 Thread Pietro Romanazzi
Thanks Charles,
good hint for Axis2.
Any idea for Axis 1.4?
Regards,
pietro
 You need to get a reference to the AxisService and then you can do 
 
 axisService.getParameterValue(myname);
 
 AxisService is provided in some lifecycle methods, in others like the init 
 method you need
 
 axisService = serviceContext.getAxisService();
 
 hth,
 charles
 
 On Nov 24, 2009, at 1:14 PM, Pietro Romanazzi wrote:
 
  Hi,
  this is a very old issue.
  Could anyone help please?
  
  i declared a parameter myname in my wsdd file:
  deployment xmlns=http://xml.apache.org/axis/wsdd/;
  xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
service name=TestService provider=java:RPC
  parameter name=className value=testService.TestService/
  parameter name=allowedMethods value=*/
  parameter name=myname value=myvalue/
/service
  /deployment
  
  how can i read this parameter in my webservice classes?
  Kindest regards,
  
  Pietro Romanazzi
  InnovaPuglia S.p.a
  Centro Tecnico RUPAR Puglia
  

 
 





AXIS2 WebServices: Processing Response which does not contain SOAP Headers

2009-11-25 Thread Vishnu Vardhan Reddy
HI ,

 

I am using AXIS2 client API to invoke third party web services. Response
we are getting from  the web service is XML but it doe contain any SOAP
headers its just plain xml file as response, but while sending request
it includes SOAP Headers .I cheeked the response though TC/IP monitor,
receiving plain XML file .Client API is giving following error while
processing the response XML SOAPProcessingException: First Element must
contain the local name, Envelope . 

 

How can we force Operation client to by pass soap header processing and
getting XML file and process by AXIOM.

 

Thanks in advance for your kind support.

 

Thanks  regards,

Vishnu.

 

 



Re: AXIS2 WebServices: Processing Response which does not contain SOAP Headers

2009-11-25 Thread Amila Suriarachchi
On Wed, Nov 25, 2009 at 4:22 PM, Vishnu Vardhan Reddy 
vre...@radiantinfo.com wrote:

  HI ,



 I am using AXIS2 client API to invoke third party web services. Response we
 are getting from  the web service is XML but it doe contain any SOAP headers
 its just plain xml file as response, but while sending request it includes
 SOAP Headers .I cheeked the response though TC/IP monitor, receiving plain
 XML file .Client API is giving following error while processing the response
 XML *SOAPProcessingException*: First Element must contain the local name,
 Envelope .


What is the Axis2 version you use?
What is the content type of the response? if it is application/xml the it
should process as a plain xml file.

thanks,
Amila.



 How can we force Operation client to by pass soap header processing and
 getting XML file and process by AXIOM.



 Thanks in advance for your kind support.



 Thanks  regards,

 Vishnu.








-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


RE: AXIS2 WebServices: Processing Response which does not contain SOAP Headers

2009-11-25 Thread Vishnu Vardhan Reddy
AIXS2 version using application is  axis2-1.4.1

I am sending receiving plain/XMl (SOAP 1.1 Request and Response)

 

Problem is response from server  is plain xml it does not contain any
SOAP headers

 

Thanks,

VIshnu

 



From: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] 
Sent: Wednesday, November 25, 2009 4:38 PM
To: axis-user@ws.apache.org
Subject: Re: AXIS2 WebServices: Processing Response which does not
contain SOAP Headers

 

 

On Wed, Nov 25, 2009 at 4:22 PM, Vishnu Vardhan Reddy
vre...@radiantinfo.com wrote:

HI ,

 

I am using AXIS2 client API to invoke third party web services. Response
we are getting from  the web service is XML but it doe contain any SOAP
headers its just plain xml file as response, but while sending request
it includes SOAP Headers .I cheeked the response though TC/IP monitor,
receiving plain XML file .Client API is giving following error while
processing the response XML SOAPProcessingException: First Element must
contain the local name, Envelope .


What is the Axis2 version you use?
What is the content type of the response? if it is application/xml the
it should process as a plain xml file.

thanks,
Amila. 

 

How can we force Operation client to by pass soap header
processing and getting XML file and process by AXIOM.

 

Thanks in advance for your kind support.

 

Thanks  regards,

Vishnu.

 

 




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/



RE: AXIS2 WebServices: Processing Response which does not contain SOAP Headers

2009-11-25 Thread Vishnu Vardhan Reddy
AIXS2 version using in application is  axis2-1.4.1

I am sending and receiving plain/XMl (SOAP 1.1 Request and Response)

 

Problem is response from server is plain xml it does not contain any
SOAP headers. but operation client is expecting SOAP headers to process
the response XML .

 

Thanks,

VIshnu

 

 



From: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] 
Sent: Wednesday, November 25, 2009 4:38 PM
To: axis-user@ws.apache.org
Subject: Re: AXIS2 WebServices: Processing Response which does not
contain SOAP Headers

 

 

On Wed, Nov 25, 2009 at 4:22 PM, Vishnu Vardhan Reddy
vre...@radiantinfo.com wrote:

HI ,

 

I am using AXIS2 client API to invoke third party web services. Response
we are getting from  the web service is XML but it doe contain any SOAP
headers its just plain xml file as response, but while sending request
it includes SOAP Headers .I cheeked the response though TC/IP monitor,
receiving plain XML file .Client API is giving following error while
processing the response XML SOAPProcessingException: First Element must
contain the local name, Envelope .


What is the Axis2 version you use?
What is the content type of the response? if it is application/xml the
it should process as a plain xml file.

thanks,
Amila. 

 

How can we force Operation client to by pass soap header
processing and getting XML file and process by AXIOM.

 

Thanks in advance for your kind support.

 

Thanks  regards,

Vishnu.

 

 




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/



Re: Problems when calling getOMElement

2009-11-25 Thread Håkon Sagehaug
Hi,

I had a closer look at the schema I'm trying to get data from and all
elements look like this


xs:complexType name=BlastOutput_program mixed=true
xs:choice minOccurs=0 maxOccurs=unbounded/
/xs:complexType

So I was wondering if adb supports this? Because now I can't get the values
either. Do one have to write a own parser when dealing with mixed content.

cheers, Håkon

2009/11/24 Andreas Veithen andreas.veit...@gmail.com

 Håkon,

 Can you provide a test case that reproduces the problem (preferably in
 the form of a Maven or Eclipse project)?

 Andreas

 2009/11/23 Håkon Sagehaug hakon.sageh...@bccs.uib.no:
  Hi
 
  I now tried with axiom 1.2.9-SNAPSHOT and axis2 1.5.1 release, but the
  problem is the same. My code looks like this
 
  OMElement omResp = resp.getGetResultResponse().getOMElement(
  GetResultResponse.MY_QNAME,
  OMAbstractFactory.getOMFactory());
 
  guess the standard way of getting the OM element. Any other int on how to
  solve this?
 
  cheers, Håkon
 
  2009/11/21 Håkon Sagehaug hakon.sageh...@bccs.uib.no
 
  Hi
 
  I'll try on monday, thanks for the help
 
  cheers, Hakon
 
  2009/11/20 Andreas Veithen andreas.veit...@gmail.com
 
  Can you test this with a snapshot version?
 
  Andreas
 
  2009/11/20 Håkon Sagehaug hakon.sageh...@bccs.uib.no:
   hi
  
   The problem is occurs using 1.4 and axiom 1.2.8. I can extract the
   values
   using the java objects, but when I use the #getOmElement() I get the
   just
   the XML without values, so my thought was the serialization or
   something
   like this.
  
   cheers, Hakon
  
   2009/11/20 Andreas Veithen andreas.veit...@gmail.com
  
   Does this problem occur with snapshot versions of Axis2 and Axiom?
  
   Andreas
  
   On Fri, Nov 20, 2009 at 16:11, Amila Suriarachchi
   amilasuriarach...@gmail.com wrote:
here is a sample code
   
InDict inDict = new InDict();
ArrayOfKeyValueOfstringstring
 arrayOfKeyValueOfstringstring
=
new
ArrayOfKeyValueOfstringstring();
inDict.setInDict(arrayOfKeyValueOfstringstring);
   
KeyValueOfstringstring_type0[]
 keyValueOfstringstring_type0
=
new
KeyValueOfstringstring_type0[1];
keyValueOfstringstring_type0[0] = new
KeyValueOfstringstring_type0();
keyValueOfstringstring_type0[0].setKey(One Element
 Array);
keyValueOfstringstring_type0[0].setValue(One Element
Array);
   
   
   
   
   
 arrayOfKeyValueOfstringstring.setKeyValueOfstringstring(keyValueOfstringstring_type0);
   
try {
OMElement omElement =
inDict.getOMElement(InDict.MY_QNAME,
OMAbstractFactory.getOMFactory());
System.out.println(OMElement ==  +
omElement.toString());
} catch (ADBException e) {
e.printStackTrace();
}
   
thanks,
Amila.
   
On Fri, Nov 20, 2009 at 3:14 AM, Andreas Veithen
andreas.veit...@gmail.com
wrote:
   
Håkon,
   
I think you need to give a bit more context. What version of
 Axis2?
What version of Axiom? Code snippet showing what you are trying
 to
do,
etc.
   
Andreas
   
2009/11/19 Håkon Sagehaug hakon.sageh...@bccs.uib.no:
 Hi

 Anybody did this, go from adb object through a xslt
 transfomation?

 Or having problem getting values out from a XML message when
 the
 tyep
 attribute is used for the data type of the element.

 cheers, Håkon

 2009/11/18 Håkon Sagehaug hakon.sageh...@bccs.uib.no

 Hi

 To provide more information, we want to do xslt transformation
 to
 our
 generated client side object. And  as far as I know we need
 the
 OmElement of
 the generated type to do so, but when this don't give back the
 values
 just
 the XML with no values, there is not much to transform. So we
 need a
 hint on
 how this can be done.



 cheers, håkon

 2009/11/18 Håkon Sagehaug hakon.sageh...@bccs.uib.no

 Hi all,

 Any tips on this. stange if it won't work?

 2009/11/17 Håkon Sagehaug hakon.sageh...@bccs.uib.no

 Hi all,

 I've got a client that calls a ws and using adb as the
 databinding(client side), then we want to get a string
 representation
 of the
 obejct.  We execute object.getOMElement(), the method
 returns
 only
 the xml
 element and not the actual value inside the element. So this
 element
 here

ns2:BlastOutput_program xsi:type=ns2:BlastOutput_
 programblastp/ns2:BlastOutput_program

 Would returns this string

 ns2:BlastOutput_program/ns2:BlastOutput_program

 We where wondering if it had anything to to with the
 xsi:type
 attribute?
 Any tips on how to solve this, or another way of getting a
 string
 representatioon of the object using adb as the 

Security Header in Generated POJO service WSDL

2009-11-25 Thread Dinçer Karaduman

Hi all,

I have problem about wsse security header in generated wsdl of POJO web 
service.


i think wsdl generation algoritm for pojo services don't include rampart 
security.


is there any way for manupulating of generated wsdl to include security 
headers?

--

*Dinçer Karaduman*

*Analyst Programmer  
*


**





Re: How to read parameter in WebService

2009-11-25 Thread Charles Galpin
No, never used Axis1, sorry.

On Nov 25, 2009, at 4:00 AM, Pietro Romanazzi wrote:

 Thanks Charles,
 good hint for Axis2.
 Any idea for Axis 1.4?
 Regards,
 pietro
 You need to get a reference to the AxisService and then you can do 
 
 axisService.getParameterValue(myname);
 
 AxisService is provided in some lifecycle methods, in others like the init 
 method you need
 
 axisService = serviceContext.getAxisService();
 
 hth,
 charles
 
 On Nov 24, 2009, at 1:14 PM, Pietro Romanazzi wrote:
 
 Hi,
 this is a very old issue.
 Could anyone help please?
 
 i declared a parameter myname in my wsdd file:
 deployment xmlns=http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
  service name=TestService provider=java:RPC
parameter name=className value=testService.TestService/
parameter name=allowedMethods value=*/
parameter name=myname value=myvalue/
  /service
 /deployment
 
 how can i read this parameter in my webservice classes?
 Kindest regards,
 
 Pietro Romanazzi
 InnovaPuglia S.p.a
 Centro Tecnico RUPAR Puglia
 
 
 
 
 
 
 



Problems running wsdl2java, with MathML schema

2009-11-25 Thread Håkon Sagehaug
Hi all,

I've developing a service that uses the MathML schema for something, but
when I try to run wsdl2java(axis2 1.5) like this

wsdl2java.sh -uri SbmlService.wsdl -d adb

using I always get this error

Caused by: org.apache.axis2.schema.SchemaCompilationException: Can not find
the group with the qname{
http://www.w3.org/1998/Math/MathML}Presentation-token.class from the parent
schema http://www.w3.org/1998/Math/MathML

Is there something with the schema that adb does not support here, the group
Presentation-token looks like this in it's schema[1]

xs:group name=Presentation-token.class
  xs:choice
xs:element ref=mi/
xs:element ref=mo/
xs:element ref=mn/
xs:element ref=mtext/
xs:element ref=ms/
  /xs:choice
/xs:group


I know that adb may not support the hole  xml schema, but I'd like to use
adb instead of xml beans, so was wondering if anyone else had ssen this
error before.

cheers, Håkon

[1] http://www.w3.org/Math/XMLSchema/mathml2/presentation/tokens.xsd

-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science
hakon.sageh...@uni.no, phone +47 55584125


Re: Axis2 Eclipse plugin - soapUI

2009-11-25 Thread Jack Sprat
I tried the soapUI plugin but found a few problems with it.  The main
one is that I specified the package for the generated classes but it
was ignored.

I set the package as:
com.mydomain.ws.myservice.gensrc


But all the classes were generated in:
com.mydomain.ws.myservice

Have you seen this behavior?


Thanks.



--- On Tue, 11/24/09, Olindo Pindaro o.pind...@gmail.com wrote:

From: Olindo Pindaro o.pind...@gmail.com
Subject: Re: Axis2 Eclipse plugin
To: axis-user@ws.apache.org
Date: Tuesday, November 24, 2009, 2:15 PM

I use SoapUI plugin... it works fine.

2009/11/24 Jack Sprat rexclaim...@yahoo.com

Can anyone shed some light on this?

If the Eclipse plugin is not an option then what is the best way to automate 
the task of running the WSDL2Java command?

I've run this from a DOS prompt and then manually imported the generated 
classes into Eclipse but there must be a better way.

Thanks.


--- On Tue, 11/24/09, Jack Sprat rexclaim...@yahoo.com wrote:


From: Jack Sprat rexclaim...@yahoo.com
Subject: Axis2 Eclipse plugin

To: axis-user@ws.apache.org
Date: Tuesday, November 24, 2009, 7:28 AM


I cannot seem to find the Axis2 Eclipse plugin for WSDL2Java.  I'm looking here:

http://ws.apache.org/axis2/tools/1_0/eclipse/wsdl2java-plugin.html

which takes me to the download page here:
http://ws.apache.org/axis2/tools/index.html


Every mirror under Code Generator Wizard shows a 404 not found error.  Am I 
looking in the wrong place?

Thanks.




  




  

Re: Problems when calling getOMElement

2009-11-25 Thread Andreas Veithen
Håkon,

I don't think it is supported. At least I didn't find anything related
to mixed content models in the ADB-related code.

Andreas

2009/11/25 Håkon Sagehaug hakon.sageh...@uni.no:
 Hi,

 I had a closer look at the schema I'm trying to get data from and all
 elements look like this


 xs:complexType name=BlastOutput_program mixed=true
 xs:choice minOccurs=0 maxOccurs=unbounded/
 /xs:complexType

 So I was wondering if adb supports this? Because now I can't get the values
 either. Do one have to write a own parser when dealing with mixed content.

 cheers, Håkon

 2009/11/24 Andreas Veithen andreas.veit...@gmail.com

 Håkon,

 Can you provide a test case that reproduces the problem (preferably in
 the form of a Maven or Eclipse project)?

 Andreas

 2009/11/23 Håkon Sagehaug hakon.sageh...@bccs.uib.no:
  Hi
 
  I now tried with axiom 1.2.9-SNAPSHOT and axis2 1.5.1 release, but the
  problem is the same. My code looks like this
 
  OMElement omResp = resp.getGetResultResponse().getOMElement(
                      GetResultResponse.MY_QNAME,
                      OMAbstractFactory.getOMFactory());
 
  guess the standard way of getting the OM element. Any other int on how
  to
  solve this?
 
  cheers, Håkon
 
  2009/11/21 Håkon Sagehaug hakon.sageh...@bccs.uib.no
 
  Hi
 
  I'll try on monday, thanks for the help
 
  cheers, Hakon
 
  2009/11/20 Andreas Veithen andreas.veit...@gmail.com
 
  Can you test this with a snapshot version?
 
  Andreas
 
  2009/11/20 Håkon Sagehaug hakon.sageh...@bccs.uib.no:
   hi
  
   The problem is occurs using 1.4 and axiom 1.2.8. I can extract the
   values
   using the java objects, but when I use the #getOmElement() I get the
   just
   the XML without values, so my thought was the serialization or
   something
   like this.
  
   cheers, Hakon
  
   2009/11/20 Andreas Veithen andreas.veit...@gmail.com
  
   Does this problem occur with snapshot versions of Axis2 and Axiom?
  
   Andreas
  
   On Fri, Nov 20, 2009 at 16:11, Amila Suriarachchi
   amilasuriarach...@gmail.com wrote:
here is a sample code
   
InDict inDict = new InDict();
    ArrayOfKeyValueOfstringstring
arrayOfKeyValueOfstringstring
=
new
ArrayOfKeyValueOfstringstring();
    inDict.setInDict(arrayOfKeyValueOfstringstring);
   
    KeyValueOfstringstring_type0[]
keyValueOfstringstring_type0
=
new
KeyValueOfstringstring_type0[1];
    keyValueOfstringstring_type0[0] = new
KeyValueOfstringstring_type0();
    keyValueOfstringstring_type0[0].setKey(One Element
Array);
    keyValueOfstringstring_type0[0].setValue(One Element
Array);
   
   
   
   
   
arrayOfKeyValueOfstringstring.setKeyValueOfstringstring(keyValueOfstringstring_type0);
   
    try {
    OMElement omElement =
inDict.getOMElement(InDict.MY_QNAME,
OMAbstractFactory.getOMFactory());
    System.out.println(OMElement ==  +
omElement.toString());
    } catch (ADBException e) {
    e.printStackTrace();
    }
   
thanks,
Amila.
   
On Fri, Nov 20, 2009 at 3:14 AM, Andreas Veithen
andreas.veit...@gmail.com
wrote:
   
Håkon,
   
I think you need to give a bit more context. What version of
Axis2?
What version of Axiom? Code snippet showing what you are trying
to
do,
etc.
   
Andreas
   
2009/11/19 Håkon Sagehaug hakon.sageh...@bccs.uib.no:
 Hi

 Anybody did this, go from adb object through a xslt
 transfomation?

 Or having problem getting values out from a XML message when
 the
 tyep
 attribute is used for the data type of the element.

 cheers, Håkon

 2009/11/18 Håkon Sagehaug hakon.sageh...@bccs.uib.no

 Hi

 To provide more information, we want to do xslt
 transformation
 to
 our
 generated client side object. And  as far as I know we need
 the
 OmElement of
 the generated type to do so, but when this don't give back
 the
 values
 just
 the XML with no values, there is not much to transform. So we
 need a
 hint on
 how this can be done.



 cheers, håkon

 2009/11/18 Håkon Sagehaug hakon.sageh...@bccs.uib.no

 Hi all,

 Any tips on this. stange if it won't work?

 2009/11/17 Håkon Sagehaug hakon.sageh...@bccs.uib.no

 Hi all,

 I've got a client that calls a ws and using adb as the
 databinding(client side), then we want to get a string
 representation
 of the
 obejct.  We execute object.getOMElement(), the method
 returns
 only
 the xml
 element and not the actual value inside the element. So
 this
 element
 here

    ns2:BlastOutput_program xsi:type=ns2:BlastOutput_
 programblastp/ns2:BlastOutput_program

 Would returns this string

 

Re: Axis2 Eclipse plugin - soapUI

2009-11-25 Thread Olindo Pindaro
I am not sure  understanding what you mean..

But I use, as generated package, the defualt that is the one specified as
namespace in WSDL.

bye
Olindo


2009/11/25 Jack Sprat rexclaim...@yahoo.com

 I tried the soapUI plugin but found a few problems with it.  The main one
 is that I specified the package for the generated classes but it was
 ignored.
 I set the package as:
 com.mydomain.ws.myservice.gensrc

 But all the classes were generated in:
 com.mydomain.ws.myservice

 Have you seen this behavior?

 Thanks.


 --- On *Tue, 11/24/09, Olindo Pindaro o.pind...@gmail.com* wrote:


 From: Olindo Pindaro o.pind...@gmail.com
 Subject: Re: Axis2 Eclipse plugin
 To: axis-user@ws.apache.org
 Date: Tuesday, November 24, 2009, 2:15 PM

 I use SoapUI plugin... it works fine.

 2009/11/24 Jack Sprat 
 rexclaim...@yahoo.comhttp://mc/compose?to=rexclaim...@yahoo.com
 

 Can anyone shed some light on this?

 If the Eclipse plugin is not an option then what is the best way to
 automate the task of running the WSDL2Java command?
 I've run this from a DOS prompt and then manually imported the generated
 classes into Eclipse but there must be a better way.

 Thanks.


 --- On *Tue, 11/24/09, Jack Sprat 
 rexclaim...@yahoo.comhttp://mc/compose?to=rexclaim...@yahoo.com
 * wrote:


 From: Jack Sprat 
 rexclaim...@yahoo.comhttp://mc/compose?to=rexclaim...@yahoo.com
 
 Subject: Axis2 Eclipse plugin
 To: axis-user@ws.apache.orghttp://mc/compose?to=axis-u...@ws.apache.org
 Date: Tuesday, November 24, 2009, 7:28 AM


 I cannot seem to find the Axis2 Eclipse plugin for WSDL2Java.  I'm looking
 here:
 http://ws.apache.org/axis2/tools/1_0/eclipse/wsdl2java-plugin.html

 which takes me to the download page here:
 http://ws.apache.org/axis2/tools/index.html

 Every mirror under Code Generator Wizard shows a 404 not found error.
 Am I looking in the wrong place?

 Thanks.







-- 
Olindo Pindaro
http://www.linkedin.com/in/olindopindaro
+39 3939455830


Re: Axis2 Eclipse plugin - soapUI

2009-11-25 Thread Jack Sprat
In the soapUI perspective, right click the binding.  Then select Generate 
Code from the menu and Axis2 artifacts from the sub-menu.
This brings up a window of options for the generated code.  There is an entry 
field for the package for generated source files.  That seems to be ignored.

The soapUI is a bit outdated and refers to Axis1 but you can see here:
http://www.soapui.org/eclipse/soapui_nature.html

Thanks.


--- On Wed, 11/25/09, Olindo Pindaro o.pind...@gmail.com wrote:

From: Olindo Pindaro o.pind...@gmail.com
Subject: Re: Axis2 Eclipse plugin - soapUI
To: axis-user@ws.apache.org
Date: Wednesday, November 25, 2009, 12:16 PM

I am not sure  understanding what you mean.. 
But I use, as generated package, the defualt that is the one specified as 
namespace in WSDL.
byeOlindo



2009/11/25 Jack Sprat rexclaim...@yahoo.com

I tried the soapUI plugin but found a few problems with it.  The main
one is that I specified the package for the generated classes but it
was ignored.

I set the package as:
com.mydomain.ws.myservice.gensrc


But all the classes were generated in:
com.mydomain.ws.myservice

Have you seen this behavior?


Thanks.



--- On Tue, 11/24/09, Olindo Pindaro o.pind...@gmail.com wrote:


From: Olindo Pindaro o.pind...@gmail.com
Subject: Re: Axis2 Eclipse plugin
To: axis-user@ws.apache.org

Date: Tuesday, November 24, 2009, 2:15 PM

I use SoapUI plugin... it works fine.

2009/11/24 Jack Sprat rexclaim...@yahoo.com



Can anyone shed some light on this?

If the Eclipse plugin is not an option then what is the best way to automate 
the task of running the WSDL2Java command?

I've run this from a DOS prompt and then manually imported the generated 
classes into Eclipse but there must be a better way.

Thanks.


--- On Tue, 11/24/09, Jack Sprat rexclaim...@yahoo.com wrote:



From: Jack Sprat rexclaim...@yahoo.com

Subject: Axis2 Eclipse plugin

To: axis-user@ws.apache.org
Date: Tuesday, November 24, 2009, 7:28 AM



I cannot seem to find the Axis2 Eclipse plugin for WSDL2Java.  I'm looking here:


http://ws.apache.org/axis2/tools/1_0/eclipse/wsdl2java-plugin.html

which takes me to the download page here:

http://ws.apache.org/axis2/tools/index.html


Every mirror under Code Generator Wizard shows a 404 not found error.  Am I 
looking in the wrong place?

Thanks.


  


  






  

archive lib directory and 3rd party libraries (axis2/tomcat 6)

2009-11-25 Thread Charles Galpin
Some jar files in my .aar lib directory do not appear to be loaded or 
recognized (I get ClassNotFound exceptions).  If I put the jars in 
axis2/WEB-INF/lib directory they are loaded fine.  Other jars are loaded fine 
so I don't think it's me putting them in the wrong place in the .aar.

Any suggestions on how to debug this?

TIA,
charles

Re: AXIS2 WebServices: Processing Response which does not contain SOAP Headers

2009-11-25 Thread Amila Suriarachchi
On Wed, Nov 25, 2009 at 4:59 PM, Vishnu Vardhan Reddy 
vre...@radiantinfo.com wrote:

  AIXS2 version using in application is  axis2-1.4.1

 I am sending and receiving plain/XMl (SOAP 1.1 Request and Response)



 Problem is response from server is plain xml it does not contain any SOAP
 headers. but operation client is expecting SOAP headers to process the
 response XML .

I mean the value of the http contentype header. for soap messages it should
be application+soap/xml

thanks,
Amila.



 Thanks,

  VIshnu




  --

 *From:* Amila Suriarachchi [mailto:amilasuriarach...@gmail.com]
 *Sent:* Wednesday, November 25, 2009 4:38 PM
 *To:* axis-user@ws.apache.org
 *Subject:* Re: AXIS2 WebServices: Processing Response which does not
 contain SOAP Headers





 On Wed, Nov 25, 2009 at 4:22 PM, Vishnu Vardhan Reddy 
 vre...@radiantinfo.com wrote:

 HI ,



 I am using AXIS2 client API to invoke third party web services. Response we
 are getting from  the web service is XML but it doe contain any SOAP headers
 its just plain xml file as response, but while sending request it includes
 SOAP Headers .I cheeked the response though TC/IP monitor, receiving plain
 XML file .Client API is giving following error while processing the response
 XML *SOAPProcessingException*: First Element must contain the local name,
 Envelope .


 What is the Axis2 version you use?
 What is the content type of the response? if it is application/xml the it
 should process as a plain xml file.

 thanks,
 Amila.



 How can we force Operation client to by pass soap header processing and
 getting XML file and process by AXIOM.



 Thanks in advance for your kind support.



 Thanks  regards,

 Vishnu.








 --
 Amila Suriarachchi
 WSO2 Inc.
 blog: http://amilachinthaka.blogspot.com/




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Facing error - Data element of the OM Node is NULL

2009-11-25 Thread ahmadbasha.shaik
Hi,

Problem Description

When message size is more than 8KB, error Data element of the OM Node is NULL 
is returned.

Problem Details

1.  Client C#/.NET3.5 (WCF): When message size is more than 8K, Axis2/C is 
returning SOAP FAULT with Data element of the OM Node is NULL error message. 
Wireshark running on client machine shows complete SOAP message (none of the 
elements are null).
2.  Client C#/.NET3.5 (WCF): When redirected listening port on server 
machine using TCPMON, Axis2/C is able to read data even when message size is 
more than 8K. There is no SOAP FAULT.
3.  Client SoapUI: When request is sent using SoapUI, Axis2/C is able to 
read data even when message size is more than 8K. There is no SOAP FAULT.

ENVIRONMENT

Server: Axis2/C running on Linux

Client: C#/.NET3.5 (WCF) and SoapUI

Clarification needed on

a.  Any interoperatbility issues between C# / .NET 3.5 (WCF) and Axis2/C ?
b.  Any restrictions imposed by Axis2/C on message/element size ?
c.  Is there a way to resolve this ?

The SOAP FAULT returned by Axis2/C is

soapenv:Body

  soapenv:Fault

soapenv:Code

  soapenv:Valuesoapenv:Sender/soapenv:Value

/soapenv:Code

soapenv:Reason

  soapenv:Text xmlns:xml=http://www.w3.org/XML/1998/namespace; 
xml:lang=enData element of the OM Node is NULL/soapenv:Text

/soapenv:Reason

soapenv:Detail

  faultXXX|http://ws.apache.org/axis2/services/XXX failed/fault

/soapenv:Detail

  /soapenv:Fault

/soapenv:Body

/soapenv:Envelope

Any help would be appreciated

Regards

Ahmad


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com


RE: AXIS2 WebServices: Processing Response which does not contain SOAP Headers

2009-11-25 Thread Vishnu Vardhan Reddy
HI ,

 

Our third party web services using SOAP1.1 so am sending http content
header as Text/xml if am sending request in application+soap/xml its not
accepting the request.

 

Problem is not with the content header .Problem is after receiving the
response from the server .AXIS2 Client is looking for SOAP header in
response XML file ,but response from our third party server is not
having the any soap headers, its directly starting with the element, so
client giving error that First Element must contain the local name,
Envelope, but found Search Data (is the root element in XML file).Can we
force AXIS2 client to not expect soap headers from response just take
data and give it for AXIOM for processing it .

 

 

 

Thanks,

 VIshnu

 



From: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] 
Sent: Thursday, November 26, 2009 7:25 AM
To: axis-user@ws.apache.org
Subject: Re: AXIS2 WebServices: Processing Response which does not
contain SOAP Headers

 

 

On Wed, Nov 25, 2009 at 4:59 PM, Vishnu Vardhan Reddy
vre...@radiantinfo.com wrote:

AIXS2 version using in application is  axis2-1.4.1

I am sending and receiving plain/XMl (SOAP 1.1 Request and Response)

 

Problem is response from server is plain xml it does not contain any
SOAP headers. but operation client is expecting SOAP headers to process
the response XML .

I mean the value of the http contentype header. for soap messages it
should be application+soap/xml 

thanks,
Amila.

 

Thanks,

 VIshnu

 

 





From: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] 
Sent: Wednesday, November 25, 2009 4:38 PM
To: axis-user@ws.apache.org
Subject: Re: AXIS2 WebServices: Processing Response which does
not contain SOAP Headers

 

 

On Wed, Nov 25, 2009 at 4:22 PM, Vishnu Vardhan Reddy
vre...@radiantinfo.com wrote:

HI ,

 

I am using AXIS2 client API to invoke third party web services.
Response we are getting from  the web service is XML but it doe contain
any SOAP headers its just plain xml file as response, but while sending
request it includes SOAP Headers .I cheeked the response though TC/IP
monitor, receiving plain XML file .Client API is giving following error
while processing the response XML SOAPProcessingException: First Element
must contain the local name, Envelope .


What is the Axis2 version you use?
What is the content type of the response? if it is
application/xml the it should process as a plain xml file.

thanks,
Amila. 

 

How can we force Operation client to by pass soap header
processing and getting XML file and process by AXIOM.

 

Thanks in advance for your kind support.

 

Thanks  regards,

Vishnu.

 

 




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/



Re: Error while trying to deploy in weblogic 10.3

2009-11-25 Thread Chinmoy Chakraborty
Amila,

Thanks a lot for your reply. I am using Axis2 1.4 with weblogic 10.3. Do I
have any other alternative to make Axis2 1.4 work with weblogic 10.3 other
than using Axis2 1.5 completely? Is there any jar file of Axis2 1.5 which I
can probably replace with the Axis2 1.4 lib?

Please let me know. This is a show stopper for me at the moment.

Chinmoy




On Sat, Nov 21, 2009 at 9:03 AM, Amila Suriarachchi 
amilasuriarach...@gmail.com wrote:

 Axis2 uses wstx-asl-3.2.4.jar as the stax implementation?

 What is the Axis2 version you use? Axis2 1.5 should work properly with web
 logic with the web logic stax implementation.

 thanks,
 Amila.


 On Fri, Nov 20, 2009 at 8:51 PM, Chinmoy Chakraborty cch...@gmail.comwrote:

 Could you tell me what is the implementation class
 for javax.xml.stream.XMLStreamReader that AXIS2 uses? I got some error when
 I try to deploy axis2 app in weblogic 10.3. Below is the error:

 11...@09:48:17151336 ERROR [[ACTIVE] ExecuteThread: '53' for queue:
 'weblogic.kernel.Default (self-tuning)']
 labware.web.admin.WSWebFunctionTableBean - Error inside
 WebFunctionTableBean.WebFunctionTableBean is
 javax.xml.stream.XMLStreamException: Error at Line:12,
 token:[OPENTAGBEGIN]Unbalanced ELEMENT got:args expected:return
 org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException:
 Error at Line:12, token:[OPENTAGBEGIN]Unbalanced ELEMENT got:args
 expected:return
 at
 org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249)
  at
 org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:307)
 at
 org.apache.axiom.om.impl.traverse.OMChildElementIterator.next(OMChildElementIterator.java:104)
  at
 org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:378)
 at
 org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:447)
  at
 org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:722)
 at
 org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:655)
  at
 org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:602)
 at
 org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:104)
  at
 labware.web.ws.connector.WSConnection.getWebFunctions(WSConnection.java:187)
 at
 labware.web.admin.WSWebFunctionTableBean.init(WSWebFunctionTableBean.java:88)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
  at java.lang.Class.newInstance0(Class.java:355)
 at java.lang.Class.newInstance(Class.java:308)
  at java.beans.Beans.instantiate(Beans.java:204)
 at java.beans.Beans.instantiate(Beans.java:48)
  at
 com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:223)
 at
 com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
  at
 com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
 at ecruiser.util.FacesUtils.resolveVariable(FacesUtils.java:111)
  at
 ecruiser.component.ClientEventSource.findClassForVar(ClientEventSource.java:571)
 at
 ecruiser.component.ClientEventSource.isMethodBinding(ClientEventSource.java:533)
  at
 ecruiser.component.ClientEventSource.whenDo(ClientEventSource.java:456)
 at
 ecruiser.component.ClientEventSource.setBindingAttribute(ClientEventSource.java:738)
  at ecruiser.component.ECComponent.setAttribute(ECComponent.java:523)
 at
 ecruiser.template.parser.JSFDocHandler.setAttributes(JSFDocHandler.java:314)
  at
 ecruiser.template.parser.JSFDocHandler.startElement(JSFDocHandler.java:186)
 at ecruiser.template.parser.Parser.parse(Parser.java:251)
  at
 ecruiser.template.TemplateViewHandler.createView(TemplateViewHandler.java:228)
 at
 labware.web.control.WebLIMSViewHandler.createView(WebLIMSViewHandler.java:37)
  at
 com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:162)
 at
 com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:109)
  at javax.faces.component.UICommand.broadcast(UICommand.java:332)
 at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
  at
 javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
 at
 com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
  at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
 at
 weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
  at
 weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
 at