Re: WSDL2Java - Inheritance problem

2008-07-20 Thread Amila Suriarachchi
Can you send your wsdl? I think you use only Axis2 at the server side.

thanks,
Amila.

On Mon, Jul 21, 2008 at 10:06 AM, Matt Wlazlo <[EMAIL PROTECTED]> wrote:

> 2008/7/21 Amila Suriarachchi <[EMAIL PROTECTED]>:
> >
> >
> > On Mon, Jul 21, 2008 at 8:26 AM, Matt Wlazlo <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi,
> >>
> >> I'm having trouble with passing inheritance types. I've followed this
> >> url:
> >>
> http://www.ibm.com/developerworks/websphere/techjournal/0401_brown/brown.html
> >> as a guide to WSDL inheritance, and everything seems to be working
> >> except that when it comes time to do a typecast, there doesn't appear
> >> to be any relationship of the objects...
> >>
> >> I think it will be easier to explain the situation in code:
> >>
> >> In my WSDL I have the following:
> >>
> >> 
> >>
> >>
> >>
> >>
> >>
> >> 
> >> 
> >>
> >> >> type="xsd1:idType" />
> >> >> type="xsd:string" />
> >>
> >> 
> >> 
> >>
> >>
> >>
> >> />
> >>
> >>
> >>
> >> 
> >> .
> >> .
> >> 
> >>
> >>
> >> >> name="id"
> >>nillable="true" type="xsd1:idSet"
> >> />
> >>
> >>
> >> 
> >>
> >>
> >> Then in my server code (the error is here):
> >>  public get(IdSet[] ids) {
> >>...
> >>for(int i = 0; i < id.length; i++) {
> >>   IdSet id = ids[i];
> >>if(id.getIdtype() == IdType.SESSNUM) {
> >>   if(!(id instanceof IdSetSess))
> >>throw new Exception("IdSetSess not used when IdType set
> to
> >> SESSNUM!"); // XXX id should be an instance of IdSetSess
> >>   .
> >>   .
> >>}
> >>}
> >>  }
> >>
> >> On the wire, an example request is:
> >>   >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
> >>
> >>  http://osr.nsw.gov.au/pillar/gen/xsd";>
> >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> >>  SESSNUM
> >>  20004465
> >>  141
> >>
> >>
> >>  INFNUM
> >>  7151999517
> >>
> >>  
> >>
> >>  
> >>
> >>
> >>
> >> The request on the wire looks to be to be OK. The expression "id
> >> instanceof IdSetSess" is always false, whereas I would expect it to be
> >> true.
> >>
> >> Do I need to do something special to be able to cast an IdSet to an
> >> IdSetSess? Is this even possible?
> >>
> >>
> >> Cheers,
> >> Matt.
> >>
> >>
> >> --
> >> Reclaim your digital rights, eliminate DRM, learn more at
> >> http://www.defectivebydesign.org/what_is_drm
> >>
> >> -BEGIN GEEK CODE BLOCK-
> >> Version: 3.12
> >> GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
> >> O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
> >> G-- e++ h+ r+ y+
> >> --END GEEK CODE BLOCK--
> >>
> >>
> >> Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> > What is the Axis version you use? Axis1.x or Axis2.x
>
> Axis2 1.4
>
> Cheers,
> Matt.
>
>
>
> --
> Reclaim your digital rights, eliminate DRM, learn more at
> http://www.defectivebydesign.org/what_is_drm
>
> -BEGIN GEEK CODE BLOCK-
> Version: 3.12
> GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
> O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
> G-- e++ h+ r+ y+
> --END GEEK CODE BLOCK--
>
>
> Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


Re: WSDL2Java - Inheritance problem

2008-07-20 Thread Matt Wlazlo
2008/7/21 Amila Suriarachchi <[EMAIL PROTECTED]>:
>
>
> On Mon, Jul 21, 2008 at 8:26 AM, Matt Wlazlo <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I'm having trouble with passing inheritance types. I've followed this
>> url:
>> http://www.ibm.com/developerworks/websphere/techjournal/0401_brown/brown.html
>> as a guide to WSDL inheritance, and everything seems to be working
>> except that when it comes time to do a typecast, there doesn't appear
>> to be any relationship of the objects...
>>
>> I think it will be easier to explain the situation in code:
>>
>> In my WSDL I have the following:
>>
>> 
>>
>>
>>
>>
>>
>> 
>> 
>>
>>> type="xsd1:idType" />
>>> type="xsd:string" />
>>
>> 
>> 
>>
>>
>>
>>
>>
>>
>>
>> 
>> .
>> .
>> 
>>
>>
>>> name="id"
>>nillable="true" type="xsd1:idSet"
>> />
>>
>>
>> 
>>
>>
>> Then in my server code (the error is here):
>>  public get(IdSet[] ids) {
>>...
>>for(int i = 0; i < id.length; i++) {
>>   IdSet id = ids[i];
>>if(id.getIdtype() == IdType.SESSNUM) {
>>   if(!(id instanceof IdSetSess))
>>throw new Exception("IdSetSess not used when IdType set to
>> SESSNUM!"); // XXX id should be an instance of IdSetSess
>>   .
>>   .
>>}
>>}
>>  }
>>
>> On the wire, an example request is:
>>  > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>>
>>  http://osr.nsw.gov.au/pillar/gen/xsd";>
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>>  SESSNUM
>>  20004465
>>  141
>>
>>
>>  INFNUM
>>  7151999517
>>
>>  
>>
>>  
>>
>>
>>
>> The request on the wire looks to be to be OK. The expression "id
>> instanceof IdSetSess" is always false, whereas I would expect it to be
>> true.
>>
>> Do I need to do something special to be able to cast an IdSet to an
>> IdSetSess? Is this even possible?
>>
>>
>> Cheers,
>> Matt.
>>
>>
>> --
>> Reclaim your digital rights, eliminate DRM, learn more at
>> http://www.defectivebydesign.org/what_is_drm
>>
>> -BEGIN GEEK CODE BLOCK-
>> Version: 3.12
>> GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
>> O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
>> G-- e++ h+ r+ y+
>> --END GEEK CODE BLOCK--
>>
>>
>> Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> What is the Axis version you use? Axis1.x or Axis2.x

Axis2 1.4

Cheers,
Matt.



-- 
Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
G-- e++ h+ r+ y+
--END GEEK CODE BLOCK--


Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

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



Re: ADBException: Unexpected subelement

2008-07-20 Thread Amila Suriarachchi
Please check whether the response you get is as given in the wsdl. check
whether the namesapce and element names are mapped correctly.

use tcpmon[1] to see the response comes back.

thanks,
Amila.

[1] http://ws.apache.org/commons/tcpmon/

On Sun, Jul 20, 2008 at 8:06 PM, Zhang Qian <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I want to use my client to call a method provided by my web service,
> but this error occures:
> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
> Unexpected subelement FindServiceResponse
>at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>at
> org.apache.axis2.wslclient.WebServiceLocatorServiceStub.fromOM(WebServiceLocatorServiceStub.java)
>at
> org.apache.axis2.wslclient.WebServiceLocatorServiceStub.FindService(WebServiceLocatorServiceStub.java:489)
>at org.apache.axis2.wslclient.Client.doFindService(Client.java:24)
>at org.apache.axis2.wslclient.Client.main(Client.java:11)
> Caused by: java.lang.Exception:
> org.apache.axis2.databinding.ADBException: Unexpected subelement
> FindServiceResponse
>at
> org.apache.axis2.wslclient.WebServiceLocatorServiceStub$FindServiceResponse$Factory.parse(WebServiceLocatorServiceStub.java:27930)
>... 4 more
> Caused by: org.apache.axis2.databinding.ADBException: Unexpected
> subelement FindServiceResponse
>at
> org.apache.axis2.wslclient.WebServiceLocatorServiceStub$FindServiceResponse$Factory.parse(WebServiceLocatorServiceStub.java:27916)
>... 4 more
>
> It seems the element FindServiceResponse has some problems, here is
> its definition in my wsdl file:
> 
>
>
>
>
>
> 
>
> My client code(Client.java):
> package org.apache.axis2.wslclient;
>
> import
> org.apache.axis2.wslclient.WebServiceLocatorServiceStub.FindServiceRequest;
> import
> org.apache.axis2.wslclient.WebServiceLocatorServiceStub.FindServiceResponse;
>
> public class Client {
>
>public static void main(java.lang.String args[]) {
>try {
>WebServiceLocatorServiceStub stub = new
> WebServiceLocatorServiceStub("http://qzhang:9090/wsgservicec";);
>doFindService(stub);
>} catch(Exception e){
>e.printStackTrace();
>System.out.println("\n\n\n");
>}
>}
>
>/* Do FindService*/
>public static void doFindService(WebServiceLocatorServiceStub stub) {
>try {
>FindServiceRequest req = new FindServiceRequest();
>req.setServiceName("qzhang_service");
>
>FindServiceResponse res = stub.FindService(req, null);
>System.out.println(res.getInstanceLocation());
>} catch(Exception e){
>e.printStackTrace();
>System.out.println("\n\n\n");
>}
>}
> }
>
> Could anyone help me out? Thanks in advance!
>
>
> Regards,
> Qian
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


Re: WSDL2Java - Inheritance problem

2008-07-20 Thread Amila Suriarachchi
On Mon, Jul 21, 2008 at 8:26 AM, Matt Wlazlo <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I'm having trouble with passing inheritance types. I've followed this
> url:
> http://www.ibm.com/developerworks/websphere/techjournal/0401_brown/brown.html
> as a guide to WSDL inheritance, and everything seems to be working
> except that when it comes time to do a typecast, there doesn't appear
> to be any relationship of the objects...
>
> I think it will be easier to explain the situation in code:
>
> In my WSDL I have the following:
>
> 
>
>
>
>
>
> 
> 
>
> type="xsd1:idType" />
> type="xsd:string" />
>
> 
> 
>
>
>
>
>
>
>
> 
> .
> .
> 
>
>
> name="id"
>nillable="true" type="xsd1:idSet" />
>
>
> 
>
>
> Then in my server code (the error is here):
>  public get(IdSet[] ids) {
>...
>for(int i = 0; i < id.length; i++) {
>   IdSet id = ids[i];
>if(id.getIdtype() == IdType.SESSNUM) {
>   if(!(id instanceof IdSetSess))
>throw new Exception("IdSetSess not used when IdType set to
> SESSNUM!"); // XXX id should be an instance of IdSetSess
>   .
>   .
>}
>}
>  }
>
> On the wire, an example request is:
>  http://schemas.xmlsoap.org/soap/envelope/";>
>
>  http://osr.nsw.gov.au/pillar/gen/xsd";>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  SESSNUM
>  20004465
>  141
>
>
>  INFNUM
>  7151999517
>
>  
>
>  
>
>
>
> The request on the wire looks to be to be OK. The expression "id
> instanceof IdSetSess" is always false, whereas I would expect it to be
> true.
>
> Do I need to do something special to be able to cast an IdSet to an
> IdSetSess? Is this even possible?
>
>
> Cheers,
> Matt.
>
>
> --
> Reclaim your digital rights, eliminate DRM, learn more at
> http://www.defectivebydesign.org/what_is_drm
>
> -BEGIN GEEK CODE BLOCK-
> Version: 3.12
> GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
> O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
> G-- e++ h+ r+ y+
> --END GEEK CODE BLOCK--
>
>
> Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> What is the Axis version you use? Axis1.x or Axis2.x

thanks,
Amila.

-- 
Amila Suriarachchi,
WSO2 Inc.


WSDL2Java - Inheritance problem

2008-07-20 Thread Matt Wlazlo
Hi,

I'm having trouble with passing inheritance types. I've followed this
url: 
http://www.ibm.com/developerworks/websphere/techjournal/0401_brown/brown.html
as a guide to WSDL inheritance, and everything seems to be working
except that when it comes time to do a typecast, there doesn't appear
to be any relationship of the objects...

I think it will be easier to explain the situation in code:

In my WSDL I have the following:























.
.









Then in my server code (the error is here):
  public get(IdSet[] ids) {
...
for(int i = 0; i < id.length; i++) {
   IdSet id = ids[i];
if(id.getIdtype() == IdType.SESSNUM) {
   if(!(id instanceof IdSetSess))
throw new Exception("IdSetSess not used when IdType set to
SESSNUM!"); // XXX id should be an instance of IdSetSess
   .
   .
}
}
  }

On the wire, an example request is:
  http://schemas.xmlsoap.org/soap/envelope/";>

  http://osr.nsw.gov.au/pillar/gen/xsd";>
http://www.w3.org/2001/XMLSchema-instance";>
  SESSNUM
  20004465
  141


  INFNUM
  7151999517

  

 



The request on the wire looks to be to be OK. The expression "id
instanceof IdSetSess" is always false, whereas I would expect it to be
true.

Do I need to do something special to be able to cast an IdSet to an
IdSetSess? Is this even possible?


Cheers,
Matt.


-- 
Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS d--- s: a C UL+++ P+++ L+ E--- W++ N o-- K- w--
O M+ V PS+++ PE Y PGP t+ 5 X++ R !tv b+++ DI+ D++
G-- e++ h+ r+ y+
--END GEEK CODE BLOCK--


Today's lucky number is: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

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



Re: [Axis2] handlers per operation

2008-07-20 Thread Jack Sprat
I've been down that road and it is not what I am looking for.  If I do 
this then I need to hard-code the comparison to the SOAP action and I'd 
rather not do that. If the operation name ever changes then I'd need to go back 
and change the code.
That is not ideal.

Robert Wierschke wrote:
> Hi,
>
> you may read the SOAP action from the message and decide whether the 
> handler should do anything or not.
>
> regards
> robert
>
> 2008/7/18 Jack Sprat <[EMAIL PROTECTED] 
> >:
>
> Hello.
>
> Is there a way to add handlers only for specific operations in a
> service and not for all?
> For example, I'd like to validate the user/password in the SOAP
> header on all operations except the simple echo operation.  I have
> a handler set in the axis2.xml confg. file but that applies to all
> operations.
>
> Thanks,
> T
>
>


  

ADBException: Unexpected subelement

2008-07-20 Thread Zhang Qian
Hi,

I want to use my client to call a method provided by my web service,
but this error occures:
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement FindServiceResponse
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at 
org.apache.axis2.wslclient.WebServiceLocatorServiceStub.fromOM(WebServiceLocatorServiceStub.java)
at 
org.apache.axis2.wslclient.WebServiceLocatorServiceStub.FindService(WebServiceLocatorServiceStub.java:489)
at org.apache.axis2.wslclient.Client.doFindService(Client.java:24)
at org.apache.axis2.wslclient.Client.main(Client.java:11)
Caused by: java.lang.Exception:
org.apache.axis2.databinding.ADBException: Unexpected subelement
FindServiceResponse
at 
org.apache.axis2.wslclient.WebServiceLocatorServiceStub$FindServiceResponse$Factory.parse(WebServiceLocatorServiceStub.java:27930)
... 4 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected
subelement FindServiceResponse
at 
org.apache.axis2.wslclient.WebServiceLocatorServiceStub$FindServiceResponse$Factory.parse(WebServiceLocatorServiceStub.java:27916)
... 4 more

It seems the element FindServiceResponse has some problems, here is
its definition in my wsdl file:








My client code(Client.java):
package org.apache.axis2.wslclient;

import 
org.apache.axis2.wslclient.WebServiceLocatorServiceStub.FindServiceRequest;
import 
org.apache.axis2.wslclient.WebServiceLocatorServiceStub.FindServiceResponse;

public class Client {

public static void main(java.lang.String args[]) {
try {
WebServiceLocatorServiceStub stub = new
WebServiceLocatorServiceStub("http://qzhang:9090/wsgservicec";);
doFindService(stub);
} catch(Exception e){
e.printStackTrace();
System.out.println("\n\n\n");
}
}

/* Do FindService*/
public static void doFindService(WebServiceLocatorServiceStub stub) {
try {
FindServiceRequest req = new FindServiceRequest();
req.setServiceName("qzhang_service");

FindServiceResponse res = stub.FindService(req, null);
System.out.println(res.getInstanceLocation());
} catch(Exception e){
e.printStackTrace();
System.out.println("\n\n\n");
}
}
}

Could anyone help me out? Thanks in advance!


Regards,
Qian

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



Re: Serialization of Wrapped WSDL Parameter Objects

2008-07-20 Thread Samisa Abeysinghe

Curtis Jensen wrote:

Thanks.  I'll look into client side modules.  Any suggestions on where
to look for a good example?  Everything I've found so far was setting
up for server side modules.
  


You can see how addressing is engaged on client side.


How about the return trip?  When we recieve the response string, how
would that get deserialized back into an object?  The axis engine
isn't involved at that point.
  
You can build the full OM tree in the module if you wish so in the in 
path handler of the module.


Samisa...

Thanks,
Curtis

On Sun, Jul 20, 2008 at 12:43 AM, Samisa Abeysinghe
<[EMAIL PROTECTED]> wrote:
  

Curtis Jensen wrote:


Thanks for the suggestion.
I assume you meant the "lOggin" module sample.  It was promising.
However, this looks like a server side solution.  I'm looking for a
client side solution.
  

It is not. It is a module, and hence can be engaged on client side as well.



Maybe the logging solution can be turned into a
client solution, but I'm not sure how.

When our application attempts to call a web service, we would like to
save the SOAP message off before it contacts the web service.  We pass
that SOAP message String to a third party who handles the actual
communication to the web service.  This is for the case when our
communications is down for some reason or we are behind a restrictive
firewall that is blocking http.  The third party passes back the
response SOAP message.  This is the interface we have been given.

I need to be able to generate the SOAP xml as it would have been sent
to a web service.  I then need to turn a response XML message back
into a Java object just as Axis would.  All on the client side.

  

Again, you can use a module similar to the logging module to get this job
done.

Thanks,
Samisa...



Is this possible?

Thanks again,
Curtis

On Fri, Jul 18, 2008 at 11:17 PM, Samisa Abeysinghe
<[EMAIL PROTECTED]> wrote:

  

Curtis Jensen wrote:



I'm using Axis2 to generate web service clients.  Everything is working
fine.
Now, I need to generate the SOAP XML string of what would be sent
through
HTTP so that I can save it for processing later.  I can get a handle to
the
the java object Axis generated to represent the web service parameter.
 I
can create the Call object and the OperationDescription for the call.
 I'm
having trouble generating the SOAP XML.  I've tried a couple of
different
things (some hackish, some less hackish).  I can never quite generate
the
exact XML that Axis is sending (I created a proxy service to capture the
exact SOAP that Axis is sending).  Does someone have experience with
this?
 Can they're share a little code example to get me going?

  

Have you had a look at the ligging module sample. That shows you how you
could capture the SOAP messages, incomming and out going. You may improve
that sample to fit your needs.

Samisa...




Also, I then need to do the reverse.  Take the response SOAP XML string
and convert it into its Java object class instance.

Thanks,
Curtis

  

--
Samisa Abeysinghe

http://people.apache.org/~samisa/


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





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



  

--
Samisa Abeysinghe

http://people.apache.org/~samisa/


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





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


  



--
Samisa Abeysinghe

http://people.apache.org/~samisa/


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



Re: Serialization of Wrapped WSDL Parameter Objects

2008-07-20 Thread Curtis Jensen
Thanks.  I'll look into client side modules.  Any suggestions on where
to look for a good example?  Everything I've found so far was setting
up for server side modules.
How about the return trip?  When we recieve the response string, how
would that get deserialized back into an object?  The axis engine
isn't involved at that point.

Thanks,
Curtis

On Sun, Jul 20, 2008 at 12:43 AM, Samisa Abeysinghe
<[EMAIL PROTECTED]> wrote:
> Curtis Jensen wrote:
>>
>> Thanks for the suggestion.
>> I assume you meant the "lOggin" module sample.  It was promising.
>> However, this looks like a server side solution.  I'm looking for a
>> client side solution.
>
> It is not. It is a module, and hence can be engaged on client side as well.
>
>> Maybe the logging solution can be turned into a
>> client solution, but I'm not sure how.
>>
>> When our application attempts to call a web service, we would like to
>> save the SOAP message off before it contacts the web service.  We pass
>> that SOAP message String to a third party who handles the actual
>> communication to the web service.  This is for the case when our
>> communications is down for some reason or we are behind a restrictive
>> firewall that is blocking http.  The third party passes back the
>> response SOAP message.  This is the interface we have been given.
>>
>> I need to be able to generate the SOAP xml as it would have been sent
>> to a web service.  I then need to turn a response XML message back
>> into a Java object just as Axis would.  All on the client side.
>>
>
> Again, you can use a module similar to the logging module to get this job
> done.
>
> Thanks,
> Samisa...
>
>> Is this possible?
>>
>> Thanks again,
>> Curtis
>>
>> On Fri, Jul 18, 2008 at 11:17 PM, Samisa Abeysinghe
>> <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> Curtis Jensen wrote:
>>>

 I'm using Axis2 to generate web service clients.  Everything is working
 fine.
 Now, I need to generate the SOAP XML string of what would be sent
 through
 HTTP so that I can save it for processing later.  I can get a handle to
 the
 the java object Axis generated to represent the web service parameter.
  I
 can create the Call object and the OperationDescription for the call.
  I'm
 having trouble generating the SOAP XML.  I've tried a couple of
 different
 things (some hackish, some less hackish).  I can never quite generate
 the
 exact XML that Axis is sending (I created a proxy service to capture the
 exact SOAP that Axis is sending).  Does someone have experience with
 this?
  Can they're share a little code example to get me going?

>>>
>>> Have you had a look at the ligging module sample. That shows you how you
>>> could capture the SOAP messages, incomming and out going. You may improve
>>> that sample to fit your needs.
>>>
>>> Samisa...
>>>
>>>

 Also, I then need to do the reverse.  Take the response SOAP XML string
 and convert it into its Java object class instance.

 Thanks,
 Curtis

>>>
>>> --
>>> Samisa Abeysinghe
>>>
>>> http://people.apache.org/~samisa/
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
> --
> Samisa Abeysinghe
>
> http://people.apache.org/~samisa/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: [AXIS2] how to use enum types

2008-07-20 Thread Amila Suriarachchi
On Thu, Jul 17, 2008 at 5:55 PM, <[EMAIL PROTECTED]> wrote:

>
> Dear Listmembers,
>
> i'am using axis2 1.4 release version togehter with eclipse version 3.4.0
> (WST). I have created a webservice from a skeleton class called JobWS.
> Generating the associated wsdl definition and an appropriate client stub
> worked like a charm (using eclipse axis2 plugin).
>
> So far so good, as far as i read, axis2 should support Java5 enum types
> since the 1.4 release, am i right? But unfortunately this doesn't work for
> me.
>
> In detail: My JobWS webservice is working with a Job class which defines
> among other attributes some enum types. For example:
>
>private DecisionYesNo computerSkills;
>
> My example enum class looks like this:
>
>   public enum DecisionYesNo implements Serializable{
>   YES, NO
>   }
>
> The wsdl file generated by java2wsdl (or
> http://localhost/[CONTEXT]/services/JobWS?wsdloption)
>  looks like this: (extract)
>
> 
>   
>
>
>
>
> 
>
> Which seems to be wrong because all enum values are missing. From what i
> know about enum representation in xml schema it should look like this:
>
> 
>   
>
>
>   
> 
>
> But even when i modify the generated wsdl file to reflect the xml structure
> above, the wsdl2java won't generate a proper client stub.


wsdl2java tool does support this. Can you please send your wsdl?

thanks,
Amila.

>
>
> So my question is, has someone expierences in using axis2 in combination
> with java5 enum types and can give me a hint?
>
> best regards
>
> Andreas
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


Re: Axis2.1.4 ADB known limitations

2008-07-20 Thread Amila Suriarachchi
On Fri, Jul 18, 2008 at 8:42 PM, Chen, Jennifer <[EMAIL PROTECTED]> wrote:

> Hi, could you please send me some examples or documents that describe
> the Axis2.1.4 ADB known limitations?  On your website, I only found the
> following sentence:
>
> "ADB is meant to be a 'Simple' databinding framework and was not meant
> to compile all types of schemas. The following limitations are the most
> highlighted.
>
> 1.  Complex Type Extensions and Restrictions. "


Infact this feature is available with ADB and  above is a bit old document.
Apart from Complex type mixed attribute support all most all the schema
constructs given here are supported.

http://www.w3.org/2002/ws/databinding/edcopy/basic/basic.html
http://www.w3.org/2002/ws/databinding/edcopy/advanced/advanced.html

thanks,
Amila.



>
> Any explanation would be greatly appreciated!
>
> Thank you!
>
> Jennifer Chen
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


Re: [Axis2] handlers per operation

2008-07-20 Thread Amila Suriarachchi
On Fri, Jul 18, 2008 at 11:25 PM, Jack Sprat <[EMAIL PROTECTED]> wrote:

> Hello.
>
> Is there a way to add handlers only for specific operations in a service
> and not for all?
> For example, I'd like to validate the user/password in the SOAP header on
> all operations except the simple echo operation.  I have a handler set in
> the axis2.xml confg. file but that applies to all operations.


you have to write a module using including your handlers see following
links. And engaged the module at operation level.

thanks,
Amila.

[1]http://ws.apache.org/axis2/1_4/modules.html
[2]http://www.developer.com/java/web/article.php/10935_3529321_1



>
>
> Thanks,
> T
>
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


Re: Serialization of Wrapped WSDL Parameter Objects

2008-07-20 Thread Samisa Abeysinghe

Curtis Jensen wrote:

Thanks for the suggestion.
I assume you meant the "lOggin" module sample.  It was promising.
However, this looks like a server side solution.  I'm looking for a
client side solution.  


It is not. It is a module, and hence can be engaged on client side as well.


Maybe the logging solution can be turned into a
client solution, but I'm not sure how.

When our application attempts to call a web service, we would like to
save the SOAP message off before it contacts the web service.  We pass
that SOAP message String to a third party who handles the actual
communication to the web service.  This is for the case when our
communications is down for some reason or we are behind a restrictive
firewall that is blocking http.  The third party passes back the
response SOAP message.  This is the interface we have been given.

I need to be able to generate the SOAP xml as it would have been sent
to a web service.  I then need to turn a response XML message back
into a Java object just as Axis would.  All on the client side.
  


Again, you can use a module similar to the logging module to get this 
job done.


Thanks,
Samisa...


Is this possible?

Thanks again,
Curtis

On Fri, Jul 18, 2008 at 11:17 PM, Samisa Abeysinghe
<[EMAIL PROTECTED]> wrote:
  

Curtis Jensen wrote:


I'm using Axis2 to generate web service clients.  Everything is working
fine.
Now, I need to generate the SOAP XML string of what would be sent through
HTTP so that I can save it for processing later.  I can get a handle to the
the java object Axis generated to represent the web service parameter.  I
can create the Call object and the OperationDescription for the call.  I'm
having trouble generating the SOAP XML.  I've tried a couple of different
things (some hackish, some less hackish).  I can never quite generate the
exact XML that Axis is sending (I created a proxy service to capture the
exact SOAP that Axis is sending).  Does someone have experience with this?
 Can they're share a little code example to get me going?
  

Have you had a look at the ligging module sample. That shows you how you
could capture the SOAP messages, incomming and out going. You may improve
that sample to fit your needs.

Samisa...



Also, I then need to do the reverse.  Take the response SOAP XML string
and convert it into its Java object class instance.

Thanks,
Curtis
  

--
Samisa Abeysinghe

http://people.apache.org/~samisa/


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





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


  



--
Samisa Abeysinghe

http://people.apache.org/~samisa/


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