following tags were not closed: soapenv:Envelope...

2008-12-10 Thread asheikh
Hi,

I have a service that receives that from another system  and sometimes my
service generates the following message. How can I make sure the
response/SOAP message (Axis 1.3) from my service is not malformed...

*Error Messsage: *

org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException:
Unexpected EOF; was expecting a close tag for element 


*Opening the response xml in the browser:*

following tags were not closed: soapenv:Envelope, soapenv:Body,
ns1:GAResponse, Data, Book, Author, addressLine. ...


Re: [Axis2] Custom Soap Header

2008-12-10 Thread Amila Suriarachchi
On Thu, Dec 11, 2008 at 3:51 AM, Prasuna Lanka <[EMAIL PROTECTED]>wrote:

> Amila
>
> Thanks much for the response. I tried BeanUtil.deserialize method(with 4
> parameters: classname, OMelem, defaultobjsupplier, null)  to get an instance
> of the custom header, the object is returned but all with null member
> values..I have the xml string in hand, but why am i not able to get the
> complete object? am i wrong in the method call?  am using ADB..
>

if you use generated ADB classes you can call the Factory.parse method
giving the xml stream reader which can be obtain from the OMElement.

thanks,
Amila.

>
> Regards
> Ps.
>
>
>
> On Tue, Dec 9, 2008 at 10:57 PM, Amila Suriarachchi <
> [EMAIL PROTECTED]> wrote:
>
>>
>>
>>  On Wed, Dec 10, 2008 at 3:36 AM, Prasuna Lanka <[EMAIL PROTECTED]>wrote:
>>
>>> Hello,
>>>
>>> Using Axis2-1.3. , I generated server side stuff from a 3rd party wsdl
>>> which contains definitions for custom SOAP Header. That is comprised of more
>>> than 3 User defined types. But in the generated source, i couldnt find any
>>> way to receive or send that custom SOAP header object except the
>>> request ojbject coming in which is in SOAP Body. I read some where to use
>>> wsdl2java -exsh true, to get the support for SOAP headers,  but when i tried
>>> on command prompt, it shows only help options. Other than OM methods, is
>>> there any way that i can read/ the header object from the incoming request?
>>>
>>
>> there is no direct method for this. you can get the Soap Envelop at your
>> skelton method. Please see here[1].
>>
>> from the soap envelop you can get the headers.
>>
>> thanks,
>> Amila.
>>
>> [1] http://wso2.org/library/2935
>> [2]
>> http://amilachinthaka.blogspot.com/2008/11/accessing-axis2-information-at-client.html
>>
>>
>>> Thanks in advance.
>>> Prasoona.
>>>
>>>
>>>
>>
>>
>>
>> --
>> Amila Suriarachchi
>> WSO2 Inc.
>> blog: http://amilachinthaka.blogspot.com/
>>
>
>


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


Re: Accessing the in flow message context in out flow handler

2008-12-10 Thread Deepal Jayasinghe
actually I forgot, seems like I have even written an article about that

http://wso2.org/library/2084

Deepal
> check out the testcase org.apache.axis2.context.OperationContextTest
>
> AxisOperation axisOperation = new InOutAxisOperation(new
> QName("test"));
> OperationContext operationContext1 = axisOperation
> .findOperationContext(messageContext1, sessionContext);
>
> HTH
> Martin
> __
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
> Sender does not endorse distribution to any party other than intended
> recipient. Sender does not necessarily endorse content contained
> within this transmission.
>
>
>
>
> > Date: Wed, 10 Dec 2008 18:59:24 -0500
> > From: [EMAIL PROTECTED]
> > To: axis-user@ws.apache.org
> > Subject: Re: Accessing the in flow message context in out flow handler
> >
> >
> > > Hi,
> > > I have a custom handler to log statistics for SOAP messages.
> > >
> > > The challenge I have is accessing some of the properties of the in
> > > flow message context in my handler's flowComplete() that is being
> executed
> > > last in OutFaultFlow.
> > >
> > > ie. I need to access and log properties of the in message context
> for the
> > > out fault message context the handler is given in Out Fault Flow.
> > >
> > > Any ideas?
> > >
> > You can get the incoming message context from the operation context.
> >
> > Thank you!
> > Deepal
> > > thanks
> > > Dave
> > >
> > >
> > >
> >
> > --
> > Thank you!
> >
> >
> > http://blogs.deepal.org
> >
>
> 
> Send e-mail faster without improving your typing skills. Get your
> Hotmail® account.
> 

-- 
Thank you!


http://blogs.deepal.org



RE: Accessing the in flow message context in out flow handler

2008-12-10 Thread Martin Gainty

check out the testcase org.apache.axis2.context.OperationContextTest

AxisOperation axisOperation = new InOutAxisOperation(new QName("test"));
OperationContext operationContext1 = axisOperation
.findOperationContext(messageContext1, sessionContext);

HTH
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




> Date: Wed, 10 Dec 2008 18:59:24 -0500
> From: [EMAIL PROTECTED]
> To: axis-user@ws.apache.org
> Subject: Re: Accessing the in flow message context in out flow handler
> 
> 
> > Hi,
> > I have a custom handler to log statistics for SOAP messages.
> >
> > The challenge I have is accessing some of the properties of the in
> > flow message context in my handler's flowComplete() that is being executed 
> > last in OutFaultFlow.
> >
> > ie. I need to access and log properties of the in message context for the 
> > out fault message context the handler is given in Out Fault Flow.
> >
> > Any ideas?
> >   
> You can get the incoming message context from the operation context.
> 
> Thank you!
> Deepal
> > thanks
> > Dave
> >
> >
> >   
> 
> -- 
> Thank you!
> 
> 
> http://blogs.deepal.org
> 

_
Send e-mail faster without improving your typing skills.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008

Re: Accessing the in flow message context in out flow handler

2008-12-10 Thread Deepal Jayasinghe

> Hi,
> I have a custom handler to log statistics for SOAP messages.
>
> The challenge I have is accessing some of the properties of the in
> flow message context in my handler's flowComplete() that is being executed 
> last in OutFaultFlow.
>
> ie. I need to access and log properties of the in message context for the 
> out fault message context the handler is given in Out Fault Flow.
>
> Any ideas?
>   
You can get the incoming message context from the operation context.

Thank you!
Deepal
> thanks
> Dave
>
>
>   

-- 
Thank you!


http://blogs.deepal.org



Accessing the in flow message context in out flow handler

2008-12-10 Thread Dave Meibusch
Hi,
I have a custom handler to log statistics for SOAP messages.

The challenge I have is accessing some of the properties of the in
flow message context in my handler's flowComplete() that is being executed 
last in OutFaultFlow.

ie. I need to access and log properties of the in message context for the 
out fault message context the handler is given in Out Fault Flow.

Any ideas?

thanks
Dave



Re: [Axis2] Custom Soap Header

2008-12-10 Thread Prasuna Lanka
Amila

Thanks much for the response. I tried BeanUtil.deserialize method(with 4
parameters: classname, OMelem, defaultobjsupplier, null)  to get an instance
of the custom header, the object is returned but all with null member
values..I have the xml string in hand, but why am i not able to get the
complete object? am i wrong in the method call?  am using ADB..

Regards
Ps.



On Tue, Dec 9, 2008 at 10:57 PM, Amila Suriarachchi <
[EMAIL PROTECTED]> wrote:

>
>
>  On Wed, Dec 10, 2008 at 3:36 AM, Prasuna Lanka <[EMAIL PROTECTED]>wrote:
>
>> Hello,
>>
>> Using Axis2-1.3. , I generated server side stuff from a 3rd party wsdl
>> which contains definitions for custom SOAP Header. That is comprised of more
>> than 3 User defined types. But in the generated source, i couldnt find any
>> way to receive or send that custom SOAP header object except the
>> request ojbject coming in which is in SOAP Body. I read some where to use
>> wsdl2java -exsh true, to get the support for SOAP headers,  but when i tried
>> on command prompt, it shows only help options. Other than OM methods, is
>> there any way that i can read/ the header object from the incoming request?
>>
>
> there is no direct method for this. you can get the Soap Envelop at your
> skelton method. Please see here[1].
>
> from the soap envelop you can get the headers.
>
> thanks,
> Amila.
>
> [1] http://wso2.org/library/2935
> [2]
> http://amilachinthaka.blogspot.com/2008/11/accessing-axis2-information-at-client.html
>
>
>> Thanks in advance.
>> Prasoona.
>>
>>
>>
>
>
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>


Server-Side Asynchronous WebService

2008-12-10 Thread John Eapen
Hello -

Using Axis2.

Need some help with implementing a web service method which has asynchronous
behaviour  on the server side.
Is there a good example of this ?  I was reading some docs on the web which
said this requires WS-Addressing to be implemented.I am not sure if that is
still the case.
I see that JAX-WS which Axis 1.4 now supports, has support from Server-Side
Asyn web services.

The client side asynchronous api is great but I this may require a axis 2
client lib. So how would a Perl based web service take advantage of a call
such as these.

Any pointer to doc/sample source code would be great.

The requirement is for the server to sent "notifications" to clients based
on some server events.

Thanks
  John


Axis2 : Can we have 2 Service with same name but different targetNameSpace

2008-12-10 Thread John Eapen
We are trying to migrate to Axis2 1.4.

Have a requirement where we need to support 2 or more services with same
Service Name but obviously belongs to different namespace.
( the requirement is due to the fact the we need to support multple versions
of a given service as product moves from say 1.0 to 2.0 ... )

Will something like this work ?
Thanks
   John

Service.xml
===


Book sample service

 ...



Book sample service

 ...




WEB APP DIR STRUCTURE
==

\---WEB-INF
|   web.xml
|
\---services
\---MyService
\---META-INF
services.xml


Re: wsdl problem

2008-12-10 Thread Andreas Veithen
Miguel,

Did you try this also with a more recent version of Axis2?

Andreas

On Tue, Dec 9, 2008 at 05:11,  <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I have the following wsdl error
>
> when i deploy my web service project in a soalris server i get this
> information via
>
> http://ipserver:8080/MileniaServices/services/wsMilenia?wsdl
>
>
> - 
> -  binding="axis2:wsMileniaSOAP11Binding">
>location="http://ipserver:8080/MileniaServices/services/wsMilenia"; />
>   
> -  binding="axis2:wsMileniaSOAP12Binding">
>location="http://ipserver:8080/MileniaServices/services/wsMilenia"; />
>   
> - 
>location="http://ipserver:8080/MileniaServices/rest/wsMilenia"; />
>   
>   
>
>
> but suddenly or when i restart the tomcat server y get the following
> information in the wsdl via
> http://ipserver:8080/MileniaServices/services/wsMilenia?wsdl
>
> - 
> -  binding="axis2:wsMileniaSOAP11Binding">
>   http://ipserver:8080/axis2/services/wsMilenia"; />
>   
> -  binding="axis2:wsMileniaSOAP12Binding">
>   http://ipserver:8080/axis2/services/wsMilenia";
> />
>   
> - 
>   http://ipserver:8080/axis2/rest/wsMilenia"; />
>   
>   
>
>
> it is, the context name changes from MileniaServices to axis2 in the address
> attribute of the soap,soap12 and http tag of the wsdl
>
> so, i have to restart tomcat sometimes several times to it changes to the
> context i want (MileniaServices), it affects to my .net web services
> clients, because this reference is changing
>
> i've tried with  true  in the
> services.xml file but it gets me confused if axis2 really take it or not
>
> i really will be appreciate you be able to help me
>
> axis version axis2-1.1.1
> tomcat versiontomcat 5.0.28
>
> thanks!!!
>
> Miguel


Re: Help with service

2008-12-10 Thread Robin Lee (Tech Support @ ULS)
Thank you for the response..

At the moment, the service works in a java environment...
We are using SQL Server 2000..

The url is passed through a java object into axis, and is returned the same way.

I'm trying to expose this so that a .NET application can access the same 
webservice.

...Robin
  - Original Message - 
  From: Martin Gainty 
  To: axis-user@ws.apache.org 
  Sent: Wednesday, December 10, 2008 12:32 PM
  Subject: RE: Help with service


  you need to get your connection parameters sorted out at a min
  username/password/host/port/DatabaseName

  check to make sure there is a DB listener installed 
  3306 for MySQL
  use netstat to verify

  1521 for Oracle
  use tnsping SID to verify

  Martin 
  __ 
  Disclaimer and confidentiality note 
  Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this transmission. 




  > From: [EMAIL PROTECTED]
  > To: axis-user@ws.apache.org
  > Subject: Re: Help with service
  > Date: Wed, 10 Dec 2008 11:26:33 -0700
  > 
  > Alright, to add to this method, i've figured out how to pass in parameters, 
  > but the parameters keep getting mixed up (even though i am passing the name 
  > of the field in as well).
  > 
  > 
http://localhost/vip/services/BookInfoPort?method=GetBookInfoByISBN&isbn=9780312949631&customeraccount=test2&customersubaccount=test1&loginname=robin&loginpassword=test
  > 
  > For some reason, based on my log on the above, this is what comes up..
  > 
  > 2008-12-10 11:24:04,640 [INFO ] - ISBN: test
  > 2008-12-10 11:24:04,640 [INFO ] - Converted ISBN: test
  > 2008-12-10 11:24:04,640 [INFO ] - Check using ISBN:
  > 2008-12-10 11:24:04,640 [INFO ] - Account: 9780312949631
  > 2008-12-10 11:24:04,640 [INFO ] - SubAccount: test1
  > 2008-12-10 11:24:04,640 [INFO ] - UserName: test2
  > 2008-12-10 11:24:04,640 [INFO ] - Password: robin
  > 2008-12-10 11:24:04,640 [INFO ] - Username NOT found
  > 2008-12-10 11:24:04,640 [INFO ] - VIP: Invalid User or Wrong Password
  > 2008-12-10 11:24:04,640 [INFO ] - User: test2
  > 2008-12-10 11:24:04,640 [INFO ] - Password: robin
  > 2008-12-10 11:24:04,640 [ERROR] - User: Invalid User or Wrong Password
  > 
  > So, ISBN consists of the password, password consists of username, Account 
  > and subaccount seem right, but the main info require are the loginname, and 
  > loginpassword...
  > 
  > The order of the getBookInfoByISBN (String ISBN, String customerAccount, 
  > String customerSubAccount, String loginName, String loginPassword).
  > 
  > All i'd like this to do is return an xml in the browser (as an external 
  > program will be doing the same thing, and then parsing the info directly) 
so 
  > this is all i'd need it to do.
  > 
  > Anyone have any suggestions?
  > 
  > Thank you.
  > 
  > ...Robin
  > 
  > - Original Message - 
  > From: "Robin Lee (Tech Support @ ULS)" <[EMAIL PROTECTED]>
  > To: 
  > Sent: Wednesday, December 10, 2008 9:31 AM
  > Subject: Re: Help with service
  > 
  > 
  > >I was able to get as far as this.
  > >
  > > http://localhost/vip/services/BookInfoPort?method=GetBookInfoByISBN
  > >
  > > 
  > > ?
  > > 
  > > ?
  > > 
  > > soapenv:Server.userException
  > > java.lang.NullPointerException
  > > 
  > > 
  > > 
  > > 
  > >
  > > If i try to pass in anything in after the method listed, i get this error.
  > >
  > > org.xml.sax.SAXParseException: Element type "GetBookInfoByISBN" must be 
  > > followed by either attribute specifications, ">" or "/>".
  > >
  > > If there is any more information that you can add to this, i would 
  > > appreciate it.
  > >
  > > Thanks.
  > >
  > > - Original Message - 
  > > From: "Robin Lee (Tech Support @ ULS)" <[EMAIL PROTECTED]>
  > > To: 
  > > Sent: Tuesday, December 09, 2008 10:06 AM
  > > Subject: Re: Help with service
  > >
  > >
  > >> 1. I do not know... i think its 1... whatever version 1.4 is... This 
  > >> software came with the development of a web service called "VIP", which 
  > >> is from the company known as Dynix (which has since merged).
  > >> 2. Sure can.. i'll send it after i answer the rest of the questions.
  > >> 3. I'm sorry, i don't understand the question...
  > >>
  > >> Like i said, i don't have a lot of experience with web services, so this 
  > >> is new territory for me in what i am trying to work on.
  > >>
  > >> Here is the wsdl.
  > >>
  > >> Thanks,
  > >> ...Robin
  > >>
  > >>
  > >> http://www.dynix.com/schema/book";>
  > >> ?
  > >> 
  > >> ?
  > >> 
  > >> ?
  > >> 
  > >> ?
  > >> 
  > >>  >> type="xsd:string"/>
  > >>  >> type="xsd:string"/>
  > >>  >> type="xsd:string"/>
  > >>  >> type="xsd:string"/>
  > >>  >> nillable="true" type="xsd:string"/>
  > >>  >> nillable="true" type="xsd:string"/>

RE: Help with service

2008-12-10 Thread Martin Gainty

you need to get your connection parameters sorted out at a min
username/password/host/port/DatabaseName

check to make sure there is a DB listener installed 
3306 for MySQL
use netstat to verify

1521 for Oracle
use tnsping SID to verify

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




> From: [EMAIL PROTECTED]
> To: axis-user@ws.apache.org
> Subject: Re: Help with service
> Date: Wed, 10 Dec 2008 11:26:33 -0700
> 
> Alright, to add to this method, i've figured out how to pass in parameters, 
> but the parameters keep getting mixed up (even though i am passing the name 
> of the field in as well).
> 
> http://localhost/vip/services/BookInfoPort?method=GetBookInfoByISBN&isbn=9780312949631&customeraccount=test2&customersubaccount=test1&loginname=robin&loginpassword=test
> 
> For some reason, based on my log on the above, this is what comes up..
> 
> 2008-12-10 11:24:04,640 [INFO ] - ISBN: test
> 2008-12-10 11:24:04,640 [INFO ] - Converted ISBN: test
> 2008-12-10 11:24:04,640 [INFO ] - Check using ISBN:
> 2008-12-10 11:24:04,640 [INFO ] - Account: 9780312949631
> 2008-12-10 11:24:04,640 [INFO ] - SubAccount: test1
> 2008-12-10 11:24:04,640 [INFO ] - UserName: test2
> 2008-12-10 11:24:04,640 [INFO ] - Password: robin
> 2008-12-10 11:24:04,640 [INFO ] - Username NOT found
> 2008-12-10 11:24:04,640 [INFO ] - VIP: Invalid User or Wrong Password
> 2008-12-10 11:24:04,640 [INFO ] - User: test2
> 2008-12-10 11:24:04,640 [INFO ] - Password: robin
> 2008-12-10 11:24:04,640 [ERROR] - User: Invalid User or Wrong Password
> 
> So, ISBN consists of the password, password consists of username, Account 
> and subaccount seem right, but the main info require are the loginname, and 
> loginpassword...
> 
> The order of the getBookInfoByISBN (String ISBN, String customerAccount, 
> String customerSubAccount, String loginName, String loginPassword).
> 
> All i'd like this to do is return an xml in the browser (as an external 
> program will be doing the same thing, and then parsing the info directly) so 
> this is all i'd need it to do.
> 
> Anyone have any suggestions?
> 
> Thank you.
> 
> ...Robin
> 
> - Original Message - 
> From: "Robin Lee (Tech Support @ ULS)" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, December 10, 2008 9:31 AM
> Subject: Re: Help with service
> 
> 
> >I was able to get as far as this.
> >
> > http://localhost/vip/services/BookInfoPort?method=GetBookInfoByISBN
> >
> > 
> > ?
> > 
> > ?
> > 
> > soapenv:Server.userException
> > java.lang.NullPointerException
> > 
> > 
> > 
> > 
> >
> > If i try to pass in anything in after the method listed, i get this error.
> >
> > org.xml.sax.SAXParseException: Element type "GetBookInfoByISBN" must be 
> > followed by either attribute specifications, ">" or "/>".
> >
> > If there is any more information that you can add to this, i would 
> > appreciate it.
> >
> > Thanks.
> >
> > - Original Message - 
> > From: "Robin Lee (Tech Support @ ULS)" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Tuesday, December 09, 2008 10:06 AM
> > Subject: Re: Help with service
> >
> >
> >> 1. I do not know... i think its 1... whatever version 1.4 is... This 
> >> software came with the development of a web service called "VIP", which 
> >> is from the company known as Dynix (which has since merged).
> >> 2. Sure can.. i'll send it after i answer the rest of the questions.
> >> 3. I'm sorry, i don't understand the question...
> >>
> >> Like i said, i don't have a lot of experience with web services, so this 
> >> is new territory for me in what i am trying to work on.
> >>
> >> Here is the wsdl.
> >>
> >> Thanks,
> >> ...Robin
> >>
> >>
> >> http://www.dynix.com/schema/book";>
> >> ?
> >> 
> >> ?
> >> 
> >> ?
> >> 
> >> ?
> >> 
> >>  >> type="xsd:string"/>
> >>  >> type="xsd:string"/>
> >>  >> type="xsd:string"/>
> >>  >> type="xsd:string"/>
> >>  >> nillable="true" type="xsd:string"/>
> >>  >> nillable="true" type="xsd:string"/>
> >>  >> type="xsd:string"/>
> >> 
> >>  >> type="xsd:string"/>
> >> 
> >> 
> >> 
> >> 
> >> ?
> >> 
> >> ?
> >> 
> >>  >> type="xsd:string"/>
> >> 
> >>  >> type="xsd:string"/>
> >> 
> >> 
> >> ?
> >> 
> >> ?
> >> 
> >> ?
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> ?
> >> 
> >> ?
> >> 
> >> ?
> >> 
> >>  >> type="tns1:BookInfoResponseType"/>
> >> 
> >> 
> >> 
> >> 
> >> 
> >> ?
> >> 
> >> 
> >> 
> >> ?
> >> 
> >> 
> >> 
> >> ?
> >> 
> >> ?
> >> 
> >>  >> name="getBookInfoByISBNRequest"/>
> >>  >> name="getBookInfoByISBNResponse"/>
> >> 
> >> 
> >> ?
> >>  >> type="impl:BookInfoPortType">
> >>  >> transport="http://schemas.xmlsoap.org/soap/http"/>
> >> ?
> >> 
> >> 
> >> ?
> >> 
> >> 
> >>

Re: Help with service

2008-12-10 Thread Robin Lee (Tech Support @ ULS)
Alright, to add to this method, i've figured out how to pass in parameters, 
but the parameters keep getting mixed up (even though i am passing the name 
of the field in as well).


http://localhost/vip/services/BookInfoPort?method=GetBookInfoByISBN&isbn=9780312949631&customeraccount=test2&customersubaccount=test1&loginname=robin&loginpassword=test

For some reason, based on my log on the above, this is what comes up..

2008-12-10 11:24:04,640 [INFO ] - ISBN: test
2008-12-10 11:24:04,640 [INFO ] - Converted ISBN: test
2008-12-10 11:24:04,640 [INFO ] - Check using ISBN:
2008-12-10 11:24:04,640 [INFO ] - Account: 9780312949631
2008-12-10 11:24:04,640 [INFO ] - SubAccount: test1
2008-12-10 11:24:04,640 [INFO ] - UserName: test2
2008-12-10 11:24:04,640 [INFO ] - Password: robin
2008-12-10 11:24:04,640 [INFO ] - Username NOT found
2008-12-10 11:24:04,640 [INFO ] - VIP: Invalid User or Wrong Password
2008-12-10 11:24:04,640 [INFO ] - User: test2
2008-12-10 11:24:04,640 [INFO ] - Password: robin
2008-12-10 11:24:04,640 [ERROR] - User: Invalid User or Wrong Password

So, ISBN consists of the password, password consists of username, Account 
and subaccount seem right, but the main info require are the loginname, and 
loginpassword...


The order of the getBookInfoByISBN (String ISBN, String customerAccount, 
String customerSubAccount, String loginName, String loginPassword).


All i'd like this to do is return an xml in the browser (as an external 
program will be doing the same thing, and then parsing the info directly) so 
this is all i'd need it to do.


Anyone have any suggestions?

Thank you.

...Robin

- Original Message - 
From: "Robin Lee (Tech Support @ ULS)" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, December 10, 2008 9:31 AM
Subject: Re: Help with service



I was able to get as far as this.

http://localhost/vip/services/BookInfoPort?method=GetBookInfoByISBN


?

?

soapenv:Server.userException
java.lang.NullPointerException





If i try to pass in anything in after the method listed, i get this error.

org.xml.sax.SAXParseException: Element type "GetBookInfoByISBN" must be 
followed by either attribute specifications, ">" or "/>".


If there is any more information that you can add to this, i would 
appreciate it.


Thanks.

- Original Message - 
From: "Robin Lee (Tech Support @ ULS)" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, December 09, 2008 10:06 AM
Subject: Re: Help with service


1. I do not know... i think its 1... whatever version 1.4 is... This 
software came with the development of a web service called "VIP", which 
is from the company known as Dynix (which has since merged).

2. Sure can.. i'll send it after i answer the rest of the questions.
3. I'm sorry, i don't understand the question...

Like i said, i don't have a lot of experience with web services, so this 
is new territory for me in what i am trying to work on.


Here is the wsdl.

Thanks,
...Robin


http://www.dynix.com/schema/book";>
?

?

?

?

type="xsd:string"/>
type="xsd:string"/>
type="xsd:string"/>
type="xsd:string"/>
nillable="true" type="xsd:string"/>
nillable="true" type="xsd:string"/>
type="xsd:string"/>


type="xsd:string"/>





?

?

type="xsd:string"/>


type="xsd:string"/>



?

?

?









?

?

?

type="tns1:BookInfoResponseType"/>






?



?



?

?

name="getBookInfoByISBNRequest"/>
name="getBookInfoByISBNResponse"/>



?
type="impl:BookInfoPortType">
transport="http://schemas.xmlsoap.org/soap/http"/>

?


?



?





?

?

http://localhost/vip/services/BookInfoPort"/>



- Original Message - 
From: "Deepal jayasinghe" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, December 06, 2008 3:59 PM
Subject: Re: Help with service



Few things
1. Are you using Axis2 or Axis1 ?
2.  Can we have a look at your wsdl
3. Are you trying to invoke REST manner or using SOAP ?

Thank you!
Deepal

Hi there,

Currently i am running axis 1.4 with tomcat 5.5.9..

Right now i have a service at
http://localhost/vip/services/BookInfoPort

I can pull up the wsdl
http://localhost/vip/services/BookInfoPort?wsdl

Now, in order to use this service, one must wrap a java object around
"bookinfoport", and send the info to the service via the java object.

What i want to do is convert/modify so that the java object is not
required for this.

In otherwards,
http://localhost/vip/services/BookInfoPort?GetBookInfoByISBN?ISBN=97813

Or somehow make it work that way, and then return the full info via 
XML.


This service was set up by me, although i had an SDK and his help on
setting it all up.  I am not able to get a hold of him, and need to
change the way this service works without having to write a brand new
version.

Does anyone have any clues on what i need to do to make this work this
way?

Thank you.

...Robin

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





--
Thank you!


http://blogs.deepal.org

IncompatibleClassChangeError with WSDL2Java XMLBean Generated Client

2008-12-10 Thread Timothy R J Langford

Hello,

I am using axis2 wsdl2java to generate an XML Beans binding client from 
a customers WSDL schema. This mostly seems to be working fine; the 
request I am testing returns the correct response and I can navigate 
most of the returned structure using the java object model. However my 
tests revealed that invoking one of the 'getter methods' causes a 
'java.lang.IncompatibleClassChangeError' error, whilst others are fine:



java.lang.IncompatibleClassChangeError: Implementing class
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

   at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

   at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:242)
   at 
org.apache.xmlbeans.impl.schema.SchemaTypeImpl.getJavaImplClass(SchemaTypeImpl.java:1709)
   at 
org.apache.xmlbeans.impl.schema.SchemaTypeImpl.getJavaImplConstructor(SchemaTypeImpl.java:1725)
   at 
org.apache.xmlbeans.impl.schema.SchemaTypeImpl.createUnattachedNode(SchemaTypeImpl.java:1853)
   at 
org.apache.xmlbeans.impl.schema.SchemaTypeImpl.createElementType(SchemaTypeImpl.java:1021)
   at 
org.apache.xmlbeans.impl.values.XmlObjectBase.create_element_user(XmlObjectBase.java:893)

   at org.apache.xmlbeans.impl.store.Xobj.getUser(Xobj.java:1657)
   at org.apache.xmlbeans.impl.store.Xobj.find_element_user(Xobj.java:2062)
   at 
com.travel.core.response.impl.ResponseHeaderImpl.getTrackingInfo(Unknown 
Source)
   at 
com.travel.client.travelapp.CoreAssertions.checkTripsResponseHeader(CoreAssertions.java:83)



So in other words; I can programatically access all of the objects in 
the following unmarshall XML except for 'getTrackingInfo()' which cause 
the exception above.



 http://X"; 
xmlns:ns3="http://response.core.fab.xmltravel.com";>

   http://X";>
 en
   
   http://X";>TEST
   http://X";>
 4643
 
2008-12-10T17:01:37.382Z
 
2008-12-10T17:01:42.025Z

   
   http://X";>
 yi3VWLhA_Hel9iHUYp_Db4xF
   
   http://X";>
 X
 X
   
 


I have searched the forum for the exception but they don't seem 
relevant. I am new to these tools. Under what situations can a single 
element fail in such a way and how to fix it? Hoping some can help.



Thank you for your time.


Tim




--
Timothy R J Langford - MEng. (Hons)
Senior Software Engineer 
Multicom Products Ltd.


Tel: +44 (0)117 9081250



RE: thread safe axis2 client stub

2008-12-10 Thread Paul French
mila.

> 

> On Mon, Dec 8, 2008 at 9:31 AM, Shehan Simen <[EMAIL PROTECTED]> wrote:

> 

> Hi,

> 

> I am going to invoke a web service via a client stub generated by axis2.

> 

> I want to have a single instance of the stub across my application.

> 

> So when I initiate the stub (when I call the constructor), I don't like to

> call it again throughout my application.

> 

> Is it thread safe?

> 

> 

> 

> Regards,

> 

> Shehan

> 

> 

> 

> 

> --

> Amila Suriarachchi

> WSO2 Inc.

> blog: http://amilachinthaka.blogspot.com/

> 

> 

> 

> 

> --

> Amila Suriarachchi

> WSO2 Inc.

> blog: http://amilachinthaka.blogspot.com/

-- 

David Ojeda



__ NOD32 3677 (20081209) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



__ NOD32 3680 (20081210) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



__ NOD32 3682 (20081210) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



RE: thread safe axis2 client stub

2008-12-10 Thread Kraus, David
I would think that there is no need to create a new client stub for each
web service call. You just need to be sure you create a separate stub
for each client thread. On each thread you can make as many web service
calls as you like using the same proxy.

 



From: Paul French [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2008 4:37 AM
To: axis-user@ws.apache.org
Subject: RE: thread safe axis2 client stub

 

Can anyone comment on this? It is a major issue for us.

 

Why is the client stub created not thread safe?

 

If it cannot be made thread safe then how can you avoid the huge
overhead of instantiating a new client stub per web service call?

 



From: Shehan Simen [mailto:[EMAIL PROTECTED] 
Sent: 10 December 2008 01:24
To: axis-user@ws.apache.org
Subject: RE: thread safe axis2 client stub

Yes, I am expecting an answer from someone who develop the axis2. It is
very inefficient to create a stub for each call.

 

Regards,

Shehan

 

From: Paul French [mailto:[EMAIL PROTECTED] 
Sent: 2008-12-10 03:29
To: axis-user@ws.apache.org; 'David Ojeda'
Subject: RE: thread safe axis2 client stub

 

http://markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub
%20thread%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results

 

 



From: David Ojeda [mailto:[EMAIL PROTECTED] 
Sent: 09 December 2008 16:16
To: axis-user@ws.apache.org
Subject: Re: thread safe axis2 client stub

I am also interested in this matter. I would like to hear Deepal's
opinion, since he was the one who said that it is not thread safe.

Paul:

You said:

> The link below suggests some tricks you can do to make things more

> efficient. What are these tricks?

What link?

Cheers,

David

On Tuesday 09 December 2008 11:50:31 Paul French wrote:

> This seems strange to me that the client stub cannot be made thread
safe.

> 

> After reading the below I have changed my client service to create the

> client stub on each call to one of my service methods since the client
stub

> is not thread safe.

> 

> I have no idea how inefficient this is? I have noticed that every time
I

> create the client stub (for each and every call) I get the message:

> 

> `[INFO] Deploying module: metadataExchange -

> file:/C:/downloads/axis2/axis2-1.4.1/lib/mex-1.4.1.jar

> 

> It suggests a lot of work is going on to simply service a single web

> service call.

> 

> The link below suggests some tricks you can do to make things more

> efficient. What are these tricks?

> 

> Thanks

> Paul

> 

> _

> 

> From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]

> Sent: 09 December 2008 04:26

> To: axis-user@ws.apache.org

> Subject: Re: thread safe axis2 client stub

> 

> 

> I was not aware of this. If the axis2 design not permits this it is
better

> not to use it.

> 

> thanks,

> Amila.

> 

> 

> On Mon, Dec 8, 2008 at 10:00 AM, Shehan Simen <[EMAIL PROTECTED]>
wrote:

> 

> 

> Also this link:

> 

>
http://markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub
%20

>t hread%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results

> 

> 

> 

> 

> 

> From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]

> Sent: 2008-12-08 15:26

> 

> 

> To: axis-user@ws.apache.org

> Subject: Re: thread safe axis2 client stub

> 

> 

> 

> 

> 

> I have tested with Axis2 1.4 and it worked fine. can you please send
the

> mail thread you mentioned?

> 

> thanks,

> Amila.

> 

> On Mon, Dec 8, 2008 at 9:48 AM, Shehan Simen <[EMAIL PROTECTED]>
wrote:

> 

> Hi Amila,

> 

> Thank you for your response. But I found in some discussion, it is
saying

> that the client stub is not thread safe. Is this problem fixed now? In

> which version I can find it then?

> 

> 

> 

> Regards,

> 

> Shehan

> 

> 

> 

> From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]

> Sent: 2008-12-08 15:13

> To: axis-user@ws.apache.org

> Subject: Re: thread safe axis2 client stub

> 

> 

> 

> yes

> 

> thanks,

> Amila.

> 

> On Mon, Dec 8, 2008 at 9:31 AM, Shehan Simen <[EMAIL PROTECTED]>
wrote:

> 

> Hi,

> 

> I am going to invoke a web service via a client stub generated by
axis2.

> 

> I want to have a single instance of the stub across my application.

> 

> So when I initiate the stub (when I call the constructor), I don't
like to

> call it again throughout my application.

> 

> Is it thread safe?

> 

> 

> 

> Regards,

> 

> Shehan

> 

> 

> 

> 

> --

> Amila Suriarachchi

> WSO2 Inc.

> blog: http://amilachinthaka.blogspot.com/

> 

> 

> 

> 

> --

> Amila Suriarachchi

> WSO2 Inc.

> blog: http://amilachinthaka.blogspot.com/

-- 

David Ojeda



__ NOD32 3677 (20081209) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



__ NOD32 3680 (20081210) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



Re: Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Rodrigo Asensio
Here is the code. Also I'm trying to generate the clients with adb or
xmlbeans and I'm getting
[ERROR] Part 'fault' of fault message
'{http://icu_test.dev}CFCInvocationException' must be defined with
'element=QName' and not 'type=QName'

this is a coldfusion axis1 ws. I found that "according to the
specification, fault and header message parts must be defined as
document/literal, even if the body is defined as RPC style."


Struct_cards
--

public class struct_cards {
protected java.lang.String card_delegate;
protected java.lang.String card_expire_date;
protected java.lang.String card_id;
protected java.lang.String card_lfd;
protected java.lang.String card_name;
protected java.lang.String card_type;
protected java.lang.String usrfld1;

public struct_cards() {}

public struct_cards(String card_delegate, String card_expire_date,
String card_id, String card_lfd, String card_name,
String card_type, String usrfld1) {
this.card_delegate = card_delegate;
this.card_expire_date = card_expire_date;
this.card_id = card_id;
this.card_lfd = card_lfd;
this.card_name = card_name;
this.card_type = card_type;
this.usrfld1 = usrfld1;
}

public String getCard_delegate() {
return card_delegate;
}

public void setCard_delegate(String card_delegate) {
this.card_delegate = card_delegate;
}

public String getCard_expire_date() {
return card_expire_date;
}

public void setCard_expire_date(String card_expire_date) {
this.card_expire_date = card_expire_date;
}

public String getCard_id() {
return card_id;
}

public void setCard_id(String card_id) {
this.card_id = card_id;
}

public String getCard_lfd() {
return card_lfd;
}

public void setCard_lfd(String card_lfd) {
this.card_lfd = card_lfd;
}

public String getCard_name() {
return card_name;
}

public void setCard_name(String card_name) {
this.card_name = card_name;
}

public String getCard_type() {
return card_type;
}

public void setCard_type(String card_type) {
this.card_type = card_type;
}

public String getUsrfld1() {
return usrfld1;
}

public void setUsrfld1(String usrfld1) {
this.usrfld1 = usrfld1;
}
}


invoke method
--

public Object[] invoke() throws Exception {
Object[] params = new Object() {"someid"};

RPCServiceClient serviceClient = new RPCServiceClient();
Options options = serviceClient.getOptions();
EndpointReference targetEPR = new EndpointReference(URL);
options.setTo(targetEPR);
options.setTimeOutInMilliSeconds(TIMEOUT);

QName actionQ = new QName(NAMESPACE, "get_cards");
//  Class[] returnTypes = new Class[] { returnTypeClass };

ArrayList resobj = new ArrayList();
resobj.add(struct_cards[].class);
Class[] ax = (Class[])resobj.toArray(new Class[resobj.size()]);
// Class[] returnTypes = new Class[]{struct_cards.class};
Object[] results = serviceClient.invokeBlocking(actionQ, 
params, ax);
return results;
}





Rodrigo Asensio
[EMAIL PROTECTED]
http://www.rodrigoasensio.com
"To err is human, but to really screw up requires the root password."



On Wed, Dec 10, 2008 at 2:47 PM, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
> Can you please send me your service code, then I will give you the exact
> solution.
>
> Deepal
>
> Rodrigo Asensio wrote:
>> the most accurate test for my case should be the testCompanyArray()
>> where it converts doing something like this
>>
>> ArrayList resobj = new ArrayList();
>> resobj.add(Struct_cards[].class);
>> (Class[])resobj.toArray(new Class[resobj.size()])
>>
>> but the result is the same...  below I'm posting the wsdl and extra
>> info that might help (me  :))
>>
>> results   Object[1]  (id=83)
>>   [0] Struct_cards  (id=84)
>>   card_delegate   null
>>   card_expire_datenull
>>   card_id null
>>   card_lfdnull
>>   card_name   null
>>   card_type   null
>>   usrfld1 null
>>
>> ws created by Macromedia ColdFusion MX version 7,0,2,142559
>> http://schemas.xmlsoap.org/soap/encoding/"/>
>> 
>> −
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> −
>> 
>> −
>> 
>> −
>> 
>> 
>> 
>> 
>> 
>>
>>

Re: Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Deepal Jayasinghe
Can you please send me your service code, then I will give you the exact
solution.

Deepal

Rodrigo Asensio wrote:
> the most accurate test for my case should be the testCompanyArray()
> where it converts doing something like this
>
> ArrayList resobj = new ArrayList();
> resobj.add(Struct_cards[].class);
> (Class[])resobj.toArray(new Class[resobj.size()])
>
> but the result is the same...  below I'm posting the wsdl and extra
> info that might help (me  :))
>
> results   Object[1]  (id=83)  
>   [0] Struct_cards  (id=84)   
>   card_delegate   null
>   card_expire_datenull
>   card_id null
>   card_lfdnull
>   card_name   null
>   card_type   null
>   usrfld1 null
>
> ws created by Macromedia ColdFusion MX version 7,0,2,142559
> http://schemas.xmlsoap.org/soap/encoding/"/>
> 
> −
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> −
> 
> −
> 
> −
> 
> 
> 
> 
> 
>
>
>
>
> Rodrigo Asensio
> [EMAIL PROTECTED]
> http://www.rodrigoasensio.com
> "To err is human, but to really screw up requires the root password."
>
>
>
> On Wed, Dec 10, 2008 at 2:11 PM, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
>   
>> Have a look at following class , it does what you want to do
>>
>> https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java
>>
>> 
>>> Class[] returnTypes = new Class[]{(Struct_cards[])}
>>> this don't compile because the objects inside the array must be Class
>>> type, and I already tried that one
>>>
>>> Class[] returnTypes = new Class[]{Struct_cards[].class}
>>>
>>>
>>> Rodrigo Asensio
>>> [EMAIL PROTECTED]
>>> http://www.rodrigoasensio.com
>>> "To err is human, but to really screw up requires the root password."
>>>
>>>
>>>
>>> On Wed, Dec 10, 2008 at 12:50 PM, Deepal Jayasinghe
>>> <[EMAIL PROTECTED]> wrote:
>>>
>>>   
> Can't return a simple Object[]
>
> axis2 141
>
> client code:
> 
>
>   RPCServiceClient serviceClient = new RPCServiceClient();
>   Options options = serviceClient.getOptions();
>   EndpointReference targetEPR = new EndpointReference(URL);
>   options.setTo(targetEPR);
>   options.setTimeOutInMilliSeconds(TIMEOUT);
>
>   QName actionQ = new QName(NAMESPACE, action);
>   Class[] returnTypes = new Class[] { Struct_cards.class };   
> //
>
>   
 Class[] returnTypes = new Class[]{(Struct_cards[])}

 would work.

 
> also
> tried  Struct_cards[].class
>   Object[] results = serviceClient.invokeBlocking(actionQ, 
> params, returnTypes);
>
> It returns an array of 1 element Struct_cards with all its values
> empty, below the XML response and the bean code.
> I saw that might be a problem of axis2 converting simple object
> arrays, but I didn't found any proof. Any help will be appreciated.
>
>
> xml returns :
> -
>
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:ns1="http://icu_test.dev";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> soapenc:arrayType="ns1:struct_cards[2]" xsi:type="soapenc:Array">
> 
>  X
>  
>  X
>  
>  Rodrigo Asensio
>  1
>  
> 
> 
>  x
>  x
>  x
>  
>  Rodrigo Asensio
>  1
>  
> 
>
>   
>
> bean code: (very basic)
> ---
>
> public class Struct_cards {
>   protected java.lang.String card_delegate;
>   protected java.lang.String card_expire_date;
>   protected java.lang.String card_id;
>   protected java.lang.String card_lfd;
>   protected java.lang.String card_name;
>   protected java.lang.String card_type;
>   protected java.lang.String usrfld1;
>
>   public Struct_cards() {}
>
>   public Struct_cards(String card_delegate, String card_expire_date,
> String card_id, String card_lfd, String card_name,
>   String card_type, String usrfld1) {
>   this.card_delegate = card_delegate;
>   this.card_expire_date = card_expire_date;
>   this.card_id = card_id;
>   this.card_lfd = card_lfd;
>   this.card_name = card_name;
>   this.card_type = card_type;
>   this.usrfld1 = usrfld1;
>   }
>
>   public String getCard_delegate()

Re: Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Rodrigo Asensio
the most accurate test for my case should be the testCompanyArray()
where it converts doing something like this

ArrayList resobj = new ArrayList();
resobj.add(Struct_cards[].class);
(Class[])resobj.toArray(new Class[resobj.size()])

but the result is the same...  below I'm posting the wsdl and extra
info that might help (me  :))

results Object[1]  (id=83)  
[0] Struct_cards  (id=84)   
card_delegate   null
card_expire_datenull
card_id null
card_lfdnull
card_name   null
card_type   null
usrfld1 null

ws created by Macromedia ColdFusion MX version 7,0,2,142559
http://schemas.xmlsoap.org/soap/encoding/"/>

−










−

−

−









Rodrigo Asensio
[EMAIL PROTECTED]
http://www.rodrigoasensio.com
"To err is human, but to really screw up requires the root password."



On Wed, Dec 10, 2008 at 2:11 PM, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
> Have a look at following class , it does what you want to do
>
> https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java
>
>> Class[] returnTypes = new Class[]{(Struct_cards[])}
>> this don't compile because the objects inside the array must be Class
>> type, and I already tried that one
>>
>> Class[] returnTypes = new Class[]{Struct_cards[].class}
>>
>>
>> Rodrigo Asensio
>> [EMAIL PROTECTED]
>> http://www.rodrigoasensio.com
>> "To err is human, but to really screw up requires the root password."
>>
>>
>>
>> On Wed, Dec 10, 2008 at 12:50 PM, Deepal Jayasinghe
>> <[EMAIL PROTECTED]> wrote:
>>
 Can't return a simple Object[]

 axis2 141

 client code:
 

   RPCServiceClient serviceClient = new RPCServiceClient();
   Options options = serviceClient.getOptions();
   EndpointReference targetEPR = new EndpointReference(URL);
   options.setTo(targetEPR);
   options.setTimeOutInMilliSeconds(TIMEOUT);

   QName actionQ = new QName(NAMESPACE, action);
   Class[] returnTypes = new Class[] { Struct_cards.class };   
 //

>>> Class[] returnTypes = new Class[]{(Struct_cards[])}
>>>
>>> would work.
>>>
 also
 tried  Struct_cards[].class
   Object[] results = serviceClient.invokeBlocking(actionQ, 
 params, returnTypes);

 It returns an array of 1 element Struct_cards with all its values
 empty, below the XML response and the bean code.
 I saw that might be a problem of axis2 converting simple object
 arrays, but I didn't found any proof. Any help will be appreciated.


 xml returns :
 -

 >>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
 soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
>>> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
 xmlns:ns1="http://icu_test.dev";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 soapenc:arrayType="ns1:struct_cards[2]" xsi:type="soapenc:Array">
 
  X
  
  X
  
  Rodrigo Asensio
  1
  
 
 
  x
  x
  x
  
  Rodrigo Asensio
  1
  
 

   

 bean code: (very basic)
 ---

 public class Struct_cards {
   protected java.lang.String card_delegate;
   protected java.lang.String card_expire_date;
   protected java.lang.String card_id;
   protected java.lang.String card_lfd;
   protected java.lang.String card_name;
   protected java.lang.String card_type;
   protected java.lang.String usrfld1;

   public Struct_cards() {}

   public Struct_cards(String card_delegate, String card_expire_date,
 String card_id, String card_lfd, String card_name,
   String card_type, String usrfld1) {
   this.card_delegate = card_delegate;
   this.card_expire_date = card_expire_date;
   this.card_id = card_id;
   this.card_lfd = card_lfd;
   this.card_name = card_name;
   this.card_type = card_type;
   this.usrfld1 = usrfld1;
   }

   public String getCard_delegate() {
   return card_delegate;
   }

   public void setCard_delegate(String card_delegate) {
   this.card_delegate = card_delegate;
   }

   public String getCard_expire_date() {
   return card_expire_date;
   }

   public void setCard_expire_date(String card_expire_d

Re: Help with service

2008-12-10 Thread Robin Lee (Tech Support @ ULS)

I was able to get as far as this.

http://localhost/vip/services/BookInfoPort?method=GetBookInfoByISBN


?

?

soapenv:Server.userException
java.lang.NullPointerException





If i try to pass in anything in after the method listed, i get this error.

org.xml.sax.SAXParseException: Element type "GetBookInfoByISBN" must be 
followed by either attribute specifications, ">" or "/>".


If there is any more information that you can add to this, i would 
appreciate it.


Thanks.

- Original Message - 
From: "Robin Lee (Tech Support @ ULS)" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, December 09, 2008 10:06 AM
Subject: Re: Help with service


1. I do not know... i think its 1... whatever version 1.4 is... This 
software came with the development of a web service called "VIP", which is 
from the company known as Dynix (which has since merged).

2. Sure can.. i'll send it after i answer the rest of the questions.
3. I'm sorry, i don't understand the question...

Like i said, i don't have a lot of experience with web services, so this 
is new territory for me in what i am trying to work on.


Here is the wsdl.

Thanks,
...Robin


http://www.dynix.com/schema/book";>
?

?

?

?

type="xsd:string"/>
type="xsd:string"/>
type="xsd:string"/>
type="xsd:string"/>
nillable="true" type="xsd:string"/>
nillable="true" type="xsd:string"/>
type="xsd:string"/>


type="xsd:string"/>





?

?

type="xsd:string"/>


type="xsd:string"/>



?

?

?









?

?

?







?



?



?

?

name="getBookInfoByISBNRequest"/>
name="getBookInfoByISBNResponse"/>



?

transport="http://schemas.xmlsoap.org/soap/http"/>

?


?



?





?

?

http://localhost/vip/services/BookInfoPort"/>



- Original Message - 
From: "Deepal jayasinghe" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, December 06, 2008 3:59 PM
Subject: Re: Help with service



Few things
1. Are you using Axis2 or Axis1 ?
2.  Can we have a look at your wsdl
3. Are you trying to invoke REST manner or using SOAP ?

Thank you!
Deepal

Hi there,

Currently i am running axis 1.4 with tomcat 5.5.9..

Right now i have a service at
http://localhost/vip/services/BookInfoPort

I can pull up the wsdl
http://localhost/vip/services/BookInfoPort?wsdl

Now, in order to use this service, one must wrap a java object around
"bookinfoport", and send the info to the service via the java object.

What i want to do is convert/modify so that the java object is not
required for this.

In otherwards,
http://localhost/vip/services/BookInfoPort?GetBookInfoByISBN?ISBN=97813

Or somehow make it work that way, and then return the full info via XML.

This service was set up by me, although i had an SDK and his help on
setting it all up.  I am not able to get a hold of him, and need to
change the way this service works without having to write a brand new
version.

Does anyone have any clues on what i need to do to make this work this
way?

Thank you.

...Robin

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





--
Thank you!


http://blogs.deepal.org


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







Re: Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Deepal Jayasinghe
Have a look at following class , it does what you want to do

https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java

> Class[] returnTypes = new Class[]{(Struct_cards[])}
> this don't compile because the objects inside the array must be Class
> type, and I already tried that one
>
> Class[] returnTypes = new Class[]{Struct_cards[].class}
>
>
> Rodrigo Asensio
> [EMAIL PROTECTED]
> http://www.rodrigoasensio.com
> "To err is human, but to really screw up requires the root password."
>
>
>
> On Wed, Dec 10, 2008 at 12:50 PM, Deepal Jayasinghe
> <[EMAIL PROTECTED]> wrote:
>   
>>> Can't return a simple Object[]
>>>
>>> axis2 141
>>>
>>> client code:
>>> 
>>>
>>>   RPCServiceClient serviceClient = new RPCServiceClient();
>>>   Options options = serviceClient.getOptions();
>>>   EndpointReference targetEPR = new EndpointReference(URL);
>>>   options.setTo(targetEPR);
>>>   options.setTimeOutInMilliSeconds(TIMEOUT);
>>>
>>>   QName actionQ = new QName(NAMESPACE, action);
>>>   Class[] returnTypes = new Class[] { Struct_cards.class };   //
>>>   
>> Class[] returnTypes = new Class[]{(Struct_cards[])}
>>
>> would work.
>> 
>>> also
>>> tried  Struct_cards[].class
>>>   Object[] results = serviceClient.invokeBlocking(actionQ, 
>>> params, returnTypes);
>>>
>>> It returns an array of 1 element Struct_cards with all its values
>>> empty, below the XML response and the bean code.
>>> I saw that might be a problem of axis2 converting simple object
>>> arrays, but I didn't found any proof. Any help will be appreciated.
>>>
>>>
>>> xml returns :
>>> -
>>>
>>> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
>>> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
>>>>> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
>>> xmlns:ns1="http://icu_test.dev";
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>> soapenc:arrayType="ns1:struct_cards[2]" xsi:type="soapenc:Array">
>>> 
>>>  X
>>>  
>>>  X
>>>  
>>>  Rodrigo Asensio
>>>  1
>>>  
>>> 
>>> 
>>>  x
>>>  x
>>>  x
>>>  
>>>  Rodrigo Asensio
>>>  1
>>>  
>>> 
>>>
>>>   
>>>
>>> bean code: (very basic)
>>> ---
>>>
>>> public class Struct_cards {
>>>   protected java.lang.String card_delegate;
>>>   protected java.lang.String card_expire_date;
>>>   protected java.lang.String card_id;
>>>   protected java.lang.String card_lfd;
>>>   protected java.lang.String card_name;
>>>   protected java.lang.String card_type;
>>>   protected java.lang.String usrfld1;
>>>
>>>   public Struct_cards() {}
>>>
>>>   public Struct_cards(String card_delegate, String card_expire_date,
>>> String card_id, String card_lfd, String card_name,
>>>   String card_type, String usrfld1) {
>>>   this.card_delegate = card_delegate;
>>>   this.card_expire_date = card_expire_date;
>>>   this.card_id = card_id;
>>>   this.card_lfd = card_lfd;
>>>   this.card_name = card_name;
>>>   this.card_type = card_type;
>>>   this.usrfld1 = usrfld1;
>>>   }
>>>
>>>   public String getCard_delegate() {
>>>   return card_delegate;
>>>   }
>>>
>>>   public void setCard_delegate(String card_delegate) {
>>>   this.card_delegate = card_delegate;
>>>   }
>>>
>>>   public String getCard_expire_date() {
>>>   return card_expire_date;
>>>   }
>>>
>>>   public void setCard_expire_date(String card_expire_date) {
>>>   this.card_expire_date = card_expire_date;
>>>   }
>>>
>>>   public String getCard_id() {
>>>   return card_id;
>>>   }
>>>
>>>   public void setCard_id(String card_id) {
>>>   this.card_id = card_id;
>>>   }
>>>
>>>   public String getCard_lfd() {
>>>   return card_lfd;
>>>   }
>>>
>>>   public void setCard_lfd(String card_lfd) {
>>>   this.card_lfd = card_lfd;
>>>   }
>>>
>>>   public String getCard_name() {
>>>   return card_name;
>>>   }
>>>
>>>   public void setCard_name(String card_name) {
>>>   this.card_name = card_name;
>>>   }
>>>
>>>   public String getCard_type() {
>>>   return card_type;
>>>   }
>>>
>>>   public void setCard_type(String card_type) {
>>>   this.card_type = card_type;
>>>   }
>>>
>>>   public String getUsrfld1() {
>>>   return usrfld1;
>>>   }
>>>
>>>   public void setUsrfld1(String usrfld1) {
>>>   this.usrfld1 = usrfld1;
>>>   }
>>>
>>>
>>>
>>>
>>>
>>>
>>> Rodrigo Asensio
>>> [EMAIL

Re: Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Rodrigo Asensio
Class[] returnTypes = new Class[]{(Struct_cards[])}
this don't compile because the objects inside the array must be Class
type, and I already tried that one

Class[] returnTypes = new Class[]{Struct_cards[].class}


Rodrigo Asensio
[EMAIL PROTECTED]
http://www.rodrigoasensio.com
"To err is human, but to really screw up requires the root password."



On Wed, Dec 10, 2008 at 12:50 PM, Deepal Jayasinghe
<[EMAIL PROTECTED]> wrote:
>
>> Can't return a simple Object[]
>>
>> axis2 141
>>
>> client code:
>> 
>>
>>   RPCServiceClient serviceClient = new RPCServiceClient();
>>   Options options = serviceClient.getOptions();
>>   EndpointReference targetEPR = new EndpointReference(URL);
>>   options.setTo(targetEPR);
>>   options.setTimeOutInMilliSeconds(TIMEOUT);
>>
>>   QName actionQ = new QName(NAMESPACE, action);
>>   Class[] returnTypes = new Class[] { Struct_cards.class };   //
> Class[] returnTypes = new Class[]{(Struct_cards[])}
>
> would work.
>> also
>> tried  Struct_cards[].class
>>   Object[] results = serviceClient.invokeBlocking(actionQ, 
>> params, returnTypes);
>>
>> It returns an array of 1 element Struct_cards with all its values
>> empty, below the XML response and the bean code.
>> I saw that might be a problem of axis2 converting simple object
>> arrays, but I didn't found any proof. Any help will be appreciated.
>>
>>
>> xml returns :
>> -
>>
>> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
>> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
>>> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
>> xmlns:ns1="http://icu_test.dev";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> soapenc:arrayType="ns1:struct_cards[2]" xsi:type="soapenc:Array">
>> 
>>  X
>>  
>>  X
>>  
>>  Rodrigo Asensio
>>  1
>>  
>> 
>> 
>>  x
>>  x
>>  x
>>  
>>  Rodrigo Asensio
>>  1
>>  
>> 
>>
>>   
>>
>> bean code: (very basic)
>> ---
>>
>> public class Struct_cards {
>>   protected java.lang.String card_delegate;
>>   protected java.lang.String card_expire_date;
>>   protected java.lang.String card_id;
>>   protected java.lang.String card_lfd;
>>   protected java.lang.String card_name;
>>   protected java.lang.String card_type;
>>   protected java.lang.String usrfld1;
>>
>>   public Struct_cards() {}
>>
>>   public Struct_cards(String card_delegate, String card_expire_date,
>> String card_id, String card_lfd, String card_name,
>>   String card_type, String usrfld1) {
>>   this.card_delegate = card_delegate;
>>   this.card_expire_date = card_expire_date;
>>   this.card_id = card_id;
>>   this.card_lfd = card_lfd;
>>   this.card_name = card_name;
>>   this.card_type = card_type;
>>   this.usrfld1 = usrfld1;
>>   }
>>
>>   public String getCard_delegate() {
>>   return card_delegate;
>>   }
>>
>>   public void setCard_delegate(String card_delegate) {
>>   this.card_delegate = card_delegate;
>>   }
>>
>>   public String getCard_expire_date() {
>>   return card_expire_date;
>>   }
>>
>>   public void setCard_expire_date(String card_expire_date) {
>>   this.card_expire_date = card_expire_date;
>>   }
>>
>>   public String getCard_id() {
>>   return card_id;
>>   }
>>
>>   public void setCard_id(String card_id) {
>>   this.card_id = card_id;
>>   }
>>
>>   public String getCard_lfd() {
>>   return card_lfd;
>>   }
>>
>>   public void setCard_lfd(String card_lfd) {
>>   this.card_lfd = card_lfd;
>>   }
>>
>>   public String getCard_name() {
>>   return card_name;
>>   }
>>
>>   public void setCard_name(String card_name) {
>>   this.card_name = card_name;
>>   }
>>
>>   public String getCard_type() {
>>   return card_type;
>>   }
>>
>>   public void setCard_type(String card_type) {
>>   this.card_type = card_type;
>>   }
>>
>>   public String getUsrfld1() {
>>   return usrfld1;
>>   }
>>
>>   public void setUsrfld1(String usrfld1) {
>>   this.usrfld1 = usrfld1;
>>   }
>>
>>
>>
>>
>>
>>
>> Rodrigo Asensio
>> [EMAIL PROTECTED]
>> http://www.rodrigoasensio.com
>> "To err is human, but to really screw up requires the root password."
>>
>>
>
> --
> Thank you!
>
>
> http://blogs.deepal.org
>
>


Re: Axis2 and Axis interoperability

2008-12-10 Thread Paul Hethmon
Start with your current WSDL you publish with Axis1 and use it to implement
the stubs for Axis2.


On 12/10/08 10:21 AM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> 
> 
> Hi
> 
> We are migrating our project from Java1.4 to Java6. Currently our software
> provides a web services implemented in Axis 1.1 + Castor 0.9.6
> (document/literal) generated from existing wsdl.
> 
> We must migrate our project to Java6. It is not possible to use Axis, because
> of the package org.apache.axis.enum. We want to migrate our web services to
> Axis2. The client stuff was implemented by other firm in Axis1/Java 1.4 and
> can not be reimplemented. We must reimplement our services in such a way, they
> are able to process requests from the existing Axis clients. Could anybody
> give me any idea, how can I do this?
> 
> 
> Regards
> 
> Krzysztof
> 
> 
> 



-
Paul Hethmon
Chief Software Architect
Clareity Security, LLC
865.824.1350 - office
865.250.3517 - mobile
www.clareitysecurity.com
-

Give a man a fire and he's warm for the day. But set fire to him and he's
warm for the rest of his life.

 -- Terry Pratchett, Discworld




Axis2 and Axis interoperability

2008-12-10 Thread krzysztof.sobkowiak
 
 
Hi
 
We are migrating our project from Java1.4 to Java6. Currently our software 
provides a web services implemented in Axis 1.1 + Castor 0.9.6 
(document/literal) generated from existing wsdl. 
 
We must migrate our project to Java6. It is not possible to use Axis, because 
of the package org.apache.axis.enum. We want to migrate our web services to 
Axis2. The client stuff was implemented by other firm in Axis1/Java 1.4 and can 
not be reimplemented. We must reimplement our services in such a way, they are 
able to process requests from the existing Axis clients. Could anybody give me 
any idea, how can I do this?
 
 
Regards
 
Krzysztof
 



Re: Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Deepal Jayasinghe

> Can't return a simple Object[]
>
> axis2 141
>
> client code:
> 
>
>   RPCServiceClient serviceClient = new RPCServiceClient();
>   Options options = serviceClient.getOptions();
>   EndpointReference targetEPR = new EndpointReference(URL);
>   options.setTo(targetEPR);
>   options.setTimeOutInMilliSeconds(TIMEOUT);
>
>   QName actionQ = new QName(NAMESPACE, action);
>   Class[] returnTypes = new Class[] { Struct_cards.class };   // 
Class[] returnTypes = new Class[]{(Struct_cards[])}

would work.
> also
> tried  Struct_cards[].class
>   Object[] results = serviceClient.invokeBlocking(actionQ, 
> params, returnTypes);
>
> It returns an array of 1 element Struct_cards with all its values
> empty, below the XML response and the bean code.
> I saw that might be a problem of axis2 converting simple object
> arrays, but I didn't found any proof. Any help will be appreciated.
>
>
> xml returns :
> -
>
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:ns1="http://icu_test.dev";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> soapenc:arrayType="ns1:struct_cards[2]" xsi:type="soapenc:Array">
> 
>  X
>  
>  X
>  
>  Rodrigo Asensio
>  1
>  
> 
> 
>  x
>  x
>  x
>  
>  Rodrigo Asensio
>  1
>  
> 
>
>   
>
> bean code: (very basic)
> ---
>
> public class Struct_cards {
>   protected java.lang.String card_delegate;
>   protected java.lang.String card_expire_date;
>   protected java.lang.String card_id;
>   protected java.lang.String card_lfd;
>   protected java.lang.String card_name;
>   protected java.lang.String card_type;
>   protected java.lang.String usrfld1;
>
>   public Struct_cards() {}
>
>   public Struct_cards(String card_delegate, String card_expire_date,
> String card_id, String card_lfd, String card_name,
>   String card_type, String usrfld1) {
>   this.card_delegate = card_delegate;
>   this.card_expire_date = card_expire_date;
>   this.card_id = card_id;
>   this.card_lfd = card_lfd;
>   this.card_name = card_name;
>   this.card_type = card_type;
>   this.usrfld1 = usrfld1;
>   }
>
>   public String getCard_delegate() {
>   return card_delegate;
>   }
>
>   public void setCard_delegate(String card_delegate) {
>   this.card_delegate = card_delegate;
>   }
>
>   public String getCard_expire_date() {
>   return card_expire_date;
>   }
>
>   public void setCard_expire_date(String card_expire_date) {
>   this.card_expire_date = card_expire_date;
>   }
>
>   public String getCard_id() {
>   return card_id;
>   }
>
>   public void setCard_id(String card_id) {
>   this.card_id = card_id;
>   }
>
>   public String getCard_lfd() {
>   return card_lfd;
>   }
>
>   public void setCard_lfd(String card_lfd) {
>   this.card_lfd = card_lfd;
>   }
>
>   public String getCard_name() {
>   return card_name;
>   }
>
>   public void setCard_name(String card_name) {
>   this.card_name = card_name;
>   }
>
>   public String getCard_type() {
>   return card_type;
>   }
>
>   public void setCard_type(String card_type) {
>   this.card_type = card_type;
>   }
>
>   public String getUsrfld1() {
>   return usrfld1;
>   }
>
>   public void setUsrfld1(String usrfld1) {
>   this.usrfld1 = usrfld1;
>   }
>
>
>
>
>
>
> Rodrigo Asensio
> [EMAIL PROTECTED]
> http://www.rodrigoasensio.com
> "To err is human, but to really screw up requires the root password."
>
>   

-- 
Thank you!


http://blogs.deepal.org



Problem with a simple Object[] in RPCServiceClient

2008-12-10 Thread Rodrigo Asensio
Can't return a simple Object[]

axis2 141

client code:


RPCServiceClient serviceClient = new RPCServiceClient();
Options options = serviceClient.getOptions();
EndpointReference targetEPR = new EndpointReference(URL);
options.setTo(targetEPR);
options.setTimeOutInMilliSeconds(TIMEOUT);

QName actionQ = new QName(NAMESPACE, action);
Class[] returnTypes = new Class[] { Struct_cards.class };   // 
also
tried  Struct_cards[].class
Object[] results = serviceClient.invokeBlocking(actionQ, 
params, returnTypes);

It returns an array of 1 element Struct_cards with all its values
empty, below the XML response and the bean code.
I saw that might be a problem of axis2 converting simple object
arrays, but I didn't found any proof. Any help will be appreciated.


xml returns :
-

http://schemas.xmlsoap.org/soap/envelope/";
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
   http://schemas.xmlsoap.org/soap/encoding/";
xmlns:ns1="http://icu_test.dev";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
soapenc:arrayType="ns1:struct_cards[2]" xsi:type="soapenc:Array">

 X
 
 X
 
 Rodrigo Asensio
 1
 


 x
 x
 x
 
 Rodrigo Asensio
 1
 

   
  

bean code: (very basic)
---

public class Struct_cards {
protected java.lang.String card_delegate;
protected java.lang.String card_expire_date;
protected java.lang.String card_id;
protected java.lang.String card_lfd;
protected java.lang.String card_name;
protected java.lang.String card_type;
protected java.lang.String usrfld1;

public Struct_cards() {}

public Struct_cards(String card_delegate, String card_expire_date,
String card_id, String card_lfd, String card_name,
String card_type, String usrfld1) {
this.card_delegate = card_delegate;
this.card_expire_date = card_expire_date;
this.card_id = card_id;
this.card_lfd = card_lfd;
this.card_name = card_name;
this.card_type = card_type;
this.usrfld1 = usrfld1;
}

public String getCard_delegate() {
return card_delegate;
}

public void setCard_delegate(String card_delegate) {
this.card_delegate = card_delegate;
}

public String getCard_expire_date() {
return card_expire_date;
}

public void setCard_expire_date(String card_expire_date) {
this.card_expire_date = card_expire_date;
}

public String getCard_id() {
return card_id;
}

public void setCard_id(String card_id) {
this.card_id = card_id;
}

public String getCard_lfd() {
return card_lfd;
}

public void setCard_lfd(String card_lfd) {
this.card_lfd = card_lfd;
}

public String getCard_name() {
return card_name;
}

public void setCard_name(String card_name) {
this.card_name = card_name;
}

public String getCard_type() {
return card_type;
}

public void setCard_type(String card_type) {
this.card_type = card_type;
}

public String getUsrfld1() {
return usrfld1;
}

public void setUsrfld1(String usrfld1) {
this.usrfld1 = usrfld1;
}






Rodrigo Asensio
[EMAIL PROTECTED]
http://www.rodrigoasensio.com
"To err is human, but to really screw up requires the root password."


RE: Axis2 default service (Deploy a service a context root)

2008-12-10 Thread Nowak Brad
Is there a way to embed tomcat into my app like I currently have
SimpleHTTPServer?  The goal of my project is to have a single .jar file
to distribute to other developers, and having an integrated server for
the Events service is a high priority.

 

Thanks,

 

Brad

 



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2008 10:50 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 default service (Deploy a service a context root)

 

 

On Tue, Dec 9, 2008 at 8:18 PM, Nowak Brad <[EMAIL PROTECTED]>
wrote:

I don't have a web.xml file...

 

I have an axis2_repo directory with a structure

 

\---axis2-repo




|   




+---conf
|   axis2.xml
|




 
+---modules
|   addressing-1.41.mar
|
+---services
|   Events.aar
|
 
 
I want to deploy the Events.aar service to http://localhost:8081/.  I
want a client to be able to sent its SOAP request to that address.
 
Right now I have to send requests to
http://localhost:8081/axis2/services/Events.

 

 

My code:

 

ConfigurationContext context = ConfigurationContextFactory.

 
createConfigurationContextFromFileSystem("./src/Colony/axis2_repo",
"./src/Colony/axis2_repo/conf/axis2.xml");  

  

SimpleHTTPServer server = new SimpleHTTPServer(context, 8081);

 

server.start();


this is not a good way to deploy services.  try deploying services under
tomcat (or with any servlet container) with the war distribution.

thanks,
Amila.

 

 

Thanks.

 





From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 08, 2008 11:37 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 default service (Deploy a service a context
root)

 

try deploying the axis2 as the ROOT and 

change this entry in web.xml
 
AxisServlet
/services/*



to 

 
AxisServlet
/*


thanks,
Amila.

On Mon, Dec 8, 2008 at 8:25 PM, Nowak Brad
<[EMAIL PROTECTED]> wrote:

How can I configure Axis2 to deploy a service at the context
root?  Right now I can only deploy them from the service path (using
SimpleHTTPServer).  My project requires a service to be deployed at
http://localhost:8081/.  

 

Thanks,

 

Brad




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




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



RE: thread safe axis2 client stub

2008-12-10 Thread Paul French
Can anyone comment on this? It is a major issue for us.
 
Why is the client stub created not thread safe?
 
If it cannot be made thread safe then how can you avoid the huge overhead of
instantiating a new client stub per web service call?

  _  

From: Shehan Simen [mailto:[EMAIL PROTECTED] 
Sent: 10 December 2008 01:24
To: axis-user@ws.apache.org
Subject: RE: thread safe axis2 client stub



Yes, I am expecting an answer from someone who develop the axis2. It is very
inefficient to create a stub for each call.

 

Regards,

Shehan

 

From: Paul French [mailto:[EMAIL PROTECTED] 
Sent: 2008-12-10 03:29
To: axis-user@ws.apache.org; 'David Ojeda'
Subject: RE: thread safe axis2 client stub

 

http://markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub%20t
hread%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results

 

 

  _  

From: David Ojeda [mailto:[EMAIL PROTECTED] 
Sent: 09 December 2008 16:16
To: axis-user@ws.apache.org
Subject: Re: thread safe axis2 client stub

I am also interested in this matter. I would like to hear Deepal's opinion,
since he was the one who said that it is not thread safe.

Paul:

You said:

> The link below suggests some tricks you can do to make things more

> efficient. What are these tricks?

What link?

Cheers,

David

On Tuesday 09 December 2008 11:50:31 Paul French wrote:

> This seems strange to me that the client stub cannot be made thread safe.

> 

> After reading the below I have changed my client service to create the

> client stub on each call to one of my service methods since the client
stub

> is not thread safe.

> 

> I have no idea how inefficient this is? I have noticed that every time I

> create the client stub (for each and every call) I get the message:

> 

> `[INFO] Deploying module: metadataExchange -

> file:/C:/downloads/axis2/axis2-1.4.1/lib/mex-1.4.1.jar

> 

> It suggests a lot of work is going on to simply service a single web

> service call.

> 

> The link below suggests some tricks you can do to make things more

> efficient. What are these tricks?

> 

> Thanks

> Paul

> 

> _

> 

> From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]

> Sent: 09 December 2008 04:26

> To: axis-user@ws.apache.org

> Subject: Re: thread safe axis2 client stub

> 

> 

> I was not aware of this. If the axis2 design not permits this it is better

> not to use it.

> 

> thanks,

> Amila.

> 

> 

> On Mon, Dec 8, 2008 at 10:00 AM, Shehan Simen <[EMAIL PROTECTED]> wrote:

> 

> 

> Also this link:

> 

>
http://markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub%20

>t hread%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results

> 

> 

> 

> 

> 

> From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]

> Sent: 2008-12-08 15:26

> 

> 

> To: axis-user@ws.apache.org

> Subject: Re: thread safe axis2 client stub

> 

> 

> 

> 

> 

> I have tested with Axis2 1.4 and it worked fine. can you please send the

> mail thread you mentioned?

> 

> thanks,

> Amila.

> 

> On Mon, Dec 8, 2008 at 9:48 AM, Shehan Simen <[EMAIL PROTECTED]> wrote:

> 

> Hi Amila,

> 

> Thank you for your response. But I found in some discussion, it is saying

> that the client stub is not thread safe. Is this problem fixed now? In

> which version I can find it then?

> 

> 

> 

> Regards,

> 

> Shehan

> 

> 

> 

> From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]

> Sent: 2008-12-08 15:13

> To: axis-user@ws.apache.org

> Subject: Re: thread safe axis2 client stub

> 

> 

> 

> yes

> 

> thanks,

> Amila.

> 

> On Mon, Dec 8, 2008 at 9:31 AM, Shehan Simen <[EMAIL PROTECTED]> wrote:

> 

> Hi,

> 

> I am going to invoke a web service via a client stub generated by axis2.

> 

> I want to have a single instance of the stub across my application.

> 

> So when I initiate the stub (when I call the constructor), I don't like to

> call it again throughout my application.

> 

> Is it thread safe?

> 

> 

> 

> Regards,

> 

> Shehan

> 

> 

> 

> 

> --

> Amila Suriarachchi

> WSO2 Inc.

> blog: http://amilachinthaka.blogspot.com/

> 

> 

> 

> 

> --

> Amila Suriarachchi

> WSO2 Inc.

> blog: http://amilachinthaka.blogspot.com/

-- 

David Ojeda



__ NOD32 3677 (20081209) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



__ NOD32 3680 (20081210) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



Axis2 Client get "Premature end of file." from server

2008-12-10 Thread Tsvetelin Saykov
Hi,

I am new in Axis2 web services application development and I am experience a
problem with Axis2

I am writing a Client application and I get "Premature end of file." from
server.
The client application is running under Linux/Java6.
The web services server is IBM Lotus Domino under MS Windows

I am using WSDL2Java tool to generate stub. I tried both mappings ADB and
JiBX
When I take the request xml (from debug log colored in red) and post it to
the server via post request using URLConnection I was able to receive server
reply.
When I downloaded the latest release of Axis1, this problem disappear and I
was able to receive server reply(using again WSDL2Java tool).

It seems that Axis2 send request which cannot be parsed by server
Does someone experience the same problem? Any idea why this happen and what
can I do to fix this issue

Thank you in advance
Tsvetelin

PS. Here is the debug log

REQUEST
[DEBUG] ==
[DEBUG] HttpConnectionManager.getConnection:  config =
HostConfiguration[host=https://host.com], timeout = 0
[DEBUG] Allocating new connection, hostConfig=HostConfiguration[host=
https://host.com]
[DEBUG] Open connection to host.com:443
[DEBUG] >> "POST //partyInterface?OpenWebService HTTP/1.1[\r][\n]"
[DEBUG] Adding Host request header
[DEBUG] >> "Content-Type: text/xml; charset=UTF-8[\r][\n]"
[DEBUG] >> "SOAPAction: ""[\r][\n]"
[DEBUG] >> "User-Agent: Axis2[\r][\n]"
[DEBUG] >> "Host: host.com[\r][\n]"
[DEBUG] >> "Transfer-Encoding: chunked[\r][\n]"
[DEBUG] >> "[\r][\n]"
[DEBUG] start writeTo()
[DEBUG]   preserve=false
[DEBUG]   isOptimized=false
[DEBUG]   isDoingSWA=false
[DEBUG] MTOM optimized Threshold value =0
[DEBUG] Created XMLOutputFactory = class com.ctc.wstx.stax.WstxOutputFactory
for [EMAIL PROTECTED]
[DEBUG] Size of XMLOutputFactory map =1
[DEBUG] XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
[DEBUG] end writeTo()
[DEBUG] >> "ca[\r][\n]"
[DEBUG] >> "http://schemas.xmlsoap.org/soap/envelope/";>"
[DEBUG] >> "[\r][\n]"
[DEBUG] >> "0"
[DEBUG] >> "[\r][\n]"
[DEBUG] >> "[\r][\n]"
[DEBUG] Request body sent
[DEBUG] << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] << "Server: Lotus-Domino[\r][\n]"
[DEBUG] << "Date: Wed, 10 Dec 2008 11:44:57 GMT[\r][\n]"
[DEBUG] << "Content-Type: text/xml; charset=utf-8[\r][\n]"
[DEBUG] << "Content-Length: 459[\r][\n]"
[DEBUG] << "[\r][\n]"
[DEBUG] ==
[DEBUG]  Property set on object
[EMAIL PROTECTED]
[DEBUG]   Key =TRANSPORT_HEADERS
[DEBUG]   Value Class =
org.apache.axis2.transport.http.CommonsTransportHeaders
[DEBUG]   Value Classloader = [EMAIL PROTECTED]
[DEBUG] Call Stack = DEBUG_FRAME =
org.apache.axis2.util.JavaUtils.callStackToString(JavaUtils.java:564)
DEBUG_FRAME =
org.apache.axis2.context.AbstractContext.debugPropertySet(AbstractContext.java:416)
DEBUG_FRAME =
org.apache.axis2.context.AbstractContext.setProperty(AbstractContext.java:182)
DEBUG_FRAME =
org.apache.axis2.transport.http.AbstractHTTPSender.obtainHTTPHeaderInformation(AbstractHTTPSender.java:120)
DEBUG_FRAME =
org.apache.axis2.transport.http.AbstractHTTPSender.processResponse(AbstractHTTPSender.java:210)
DEBUG_FRAME =
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:265)
DEBUG_FRAME =
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
DEBUG_FRAME =
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
DEBUG_FRAME =
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
DEBUG_FRAME =
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
DEBUG_FRAME =
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
DEBUG_FRAME =
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
DEBUG_FRAME =
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
DEBUG_FRAME =
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
DEBUG_FRAME =
com.rushmore.advancedevents.gmp.ws.jibx.PartyInterfaceServiceStub.CHECKWS(PartyInterfaceServiceStub.java:309)
DEBUG_FRAME =
com.rushmore.advancedevents.gmp.ws.jibx.ClientJibx.noParameters(ClientJibx.java:32)
DEBUG_FRAME =
com.rushmore.advancedevents.gmp.ws.jibx.ClientJibx.main(ClientJibx.java:18)

[DEBUG] ==



RESPONSE
[DEBUG] ==
[DEBUG] createSOAPEnvelope using Builder (class
org.apache.axis2.builder.SOAPBuilder) selected from type (text/xml)
[DEBUG] << "[\n]"
[DEBUG] << "http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>[\n]"
[DEBUG] << " [\n]"
[DEBUG] << "  [\n]"
[DEBUG] << "   soapenv:Server.generalException[\n]"
[DEBUG] << "   org.xml.sax.SAXParseException: Premature end of
file.[\n]

setting nillable property from POJO

2008-12-10 Thread prashant_4s

Hi,
I have a simple POJO with properties as follows:

public String s;
public int k = 0;

In WSDL file, i see these variables as :



Is it possible to control the nillable property? I would like to have String
data type values with nillable property = false and int dataypes as nillable
= true

Also, axis2 automatically generates wsdl file for the service deployed in
tomcat. Can i force axis to use the wsdl file i generate instead of it
generating automatically.

Regards,
Prashant

-- 
View this message in context: 
http://www.nabble.com/setting-nillable-property-from-POJO-tp20934011p20934011.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Get wsdl url for service description

2008-12-10 Thread Alexey Zavizionov
Does this 
http://mail-archives.apache.org/mod_mbox/portals-wsrp4j-user/200506.mbox/[EMAIL 
PROTECTED]
fixed?

Thanks,
Alexey.

On Wed, Dec 10, 2008 at 12:48 AM, Alexey Zavizionov
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I use Axis1 1.4 with my service. I have an application with multiport
> service producer use org.apache.axis.transport.http.AxisServlet
>
> How can I get a wsdl service description?
>
> Regards,
> Alexey.
>


AW: AW: AW: AW: Multiple services.xml, one serviceGroup

2008-12-10 Thread Gaiser, Matthias
Yes, you're right. You can only provide general solutions for most use cases 
which unfortunately does not cover mine. If I get a good idea, how I can handle 
it without implementing everything by myself, I'll let this list know.

Thank you for your effort, Deepal.
Matthias.

> -Ursprüngliche Nachricht-
> Von: Deepal jayasinghe [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 9. Dezember 2008 15:26
> An: axis-user@ws.apache.org
> Betreff: Re: AW: AW: AW: Multiple services.xml, one serviceGroup
> 
> 
> > Thank you again for you answer.
> >
> > I don't really like the idea that I have to implement the session
> handling myself using the ConfigurationContext. I thought I could use a
> nice feature of the axis2 framework.. mm.. maybe I can think of other
> solutions or maybe I can somehow redesign my services.
> > If anyone has an idea, I'll be happy to hear about it.
> >
> I agree (and I am sorry for not giving the solution you want) , but as
> you can understand it is very difficult to support all the user
> scenarios. So that is why we have identify  for common types of
> sessions
> and implemented session management support for those. That does not
> mean
> one can not implement new session scope on Axis2 , he can of course do
> that adding few handlers.
> 
> Thank you!
> Deepal
> > Matthias.
> >
> >
> >>> But am I not running into problems when two clients are using the
> >>>
> >> same service. They would use the same ConfigurationContext, wouldn't
> >> they? That way values from different sessions could be mixed up.
> >>
> >> Yes , with configuration context you will have threading issues. I
> am
> >> sorry I forgot to tell you about that in the first place. Since
> there
> >> are only one ConfigurationContext you will have those problem.
> >>
> >>> If it is not that way, I'd be happy to take the
> ConfigurationContext.
> >>>
> >> But I can't imagine how Axis should figure out which call belongs to
> >> which session without a corresponding session id.
> >>
> >> I think if you store your values with some kind of custom session ID
> ,
> >> then you will not have any problem.
> >>
> >> Deepal
> >>
> >>> Thank you for any help,
> >>> Matthias.
> >>>
> >>>
> >>>
>  -Ursprüngliche Nachricht-
>  Von: Deepal jayasinghe [mailto:[EMAIL PROTECTED]
>  Gesendet: Donnerstag, 4. Dezember 2008 17:03
>  An: axis-user@ws.apache.org
>  Betreff: Re: AW: Multiple services.xml, one serviceGroup
> 
> 
> 
> 
> > Deepal,
> > Thank you for your answer.
> >
> > Is Axis2 supporting me somehow if I want to maintain the session
> >
> >> via
> >>
>  the configuration context?
> 
>  Yes , you do not need to do anything other than storing your data
> in
>  the
>  configuration context.
> 
> 
> > Do I then have to set a SOAP-Header with a session id myself?
> > Isn't there only one configuration context per webapplication?
> >
> >
> >
>  When you store something in the configuration context you do not
> 
> >> need
> >>
>  the session ID , except the key of the value you store is the
> 
> >> session
> >>
>  ID.
> 
> 
> > I could think of possible solutions with the configuration
> context,
> >
> >
>  but this would mean, that I have to implement the session handling
> 
> >> all
> >>
>  by myself. Am I missing something out?
> 
> 
>  Nope , just store your values there and access whenever you need
> 
> >> that.
> >>
>  Thank you!
>  Deepal
> 
> 
> > Thanks,
> > Matthias.
> >
> >
> >
> >
> >> -Ursprüngliche Nachricht-
> >> Von: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]
> >> Gesendet: Mittwoch, 3. Dezember 2008 16:32
> >> An: axis-user@ws.apache.org
> >> Betreff: Re: Multiple services.xml, one serviceGroup
> >>
> >>
> >>
> >>
> >>
> >>> Hi,
> >>>
> >>>
> >>>
> >>> I am implementing session-based web services. We use the
> >>> servicegroup-based session.
> >>>
> >>>
> >>>
> >>> Since I have a lot of services, I want to have single
> >>>
> >> services.xml
> >>
> >>> files for each service. But in order to have them share the
> same
> >>> session, I must have them in the same serviceGroup.
> >>>
> >>>
> >>>
> >>> Is it possible to have services in different services.xml but
> >>>
> >> still
> >>
> >>>
> >> in
> >>
> >>
> >>
> >>> the same servicegroup??
> >>>
> >>>
> >>>
> >>>
> >> Unfortunately no, only the services in one service group can
> >>
> >> shares
> >>
>  the
> 
> 
> >> sessions in a given session.However you can maintain the session
> >>
> >>
>  using
> 
> 
> >> configuration context, then you can maintain session without
> even
> >> thinking about soap or transport session.
> >>
> >> Deepal