RE: getting java.lang.NoClassDefFoundError while invocation

2007-10-14 Thread Anumodh Sreedharan
Hi Deepal,
Thanks for the response!! Actually for this service, I use the user provided 
wsdl to create the Transfer objects and message receiver. I use the generated 
code to develop the business logic and deploy it setting useOriginalWsdl to 
true.

Regards,
Anumodh K. Sreedharan
Communication Service Providers
Infosys Technologies Limited
Mob: 09895821311 | Extn: 8372

-Original Message-
From: Deepal jayasinghe [mailto:[EMAIL PROTECTED]
Sent: Monday, October 15, 2007 11:04 AM
To: axis-user@ws.apache.org
Subject: Re: getting java.lang.NoClassDefFoundError while invocation

Hi Anumodh
Is this a code-generated service ?

Thanks
Deepal
>
> /Hi,/
>
> /I had sent this mail earlier, but got no reply. I'm unable to proceed
> further. Hence, resending it again./
>
> /I'm using axis2 1.3 for developing a web service (3 methods) along
> with spring and hibernate. I was successful in deploying the web
> service and also invoking one of the methods. But on invocation of the
> other two methods, I'm getting an exception as follows:/
>
> / /
>
> / [ERROR] sample/sampleList/_2007/_01/_01/Account12$Factory/
>
> /java.lang.NoClassDefFoundError] sample/sampleList/Account12$Factory/
>
> /at ]
> sample.sampleList._2007._01._01.GetValue$Factory.parse(.GetValue.java:905)/
>
> /at ]
> sample.sampleList._2007._01._01.GetRequest$Factory.parse(GetRequest.java:446)/
>
> /]
> sample.sampleList._2007._01._01.SampleWebServiceMessageReceiverInOut.fromOM
> (SampleWebServiceMessageReceiverInOut.java:250)/
>
> /at ]
> sample.sampleList._2007._01._01.SampleWebServiceMessageReceiverInOut..invokeBusinessLogic(SampleWebServiceMessageReceiverInOut.java:43/
>
> /)/
>
> /at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBus/
>
> /inessLogic(AbstractInOutSyncMessageReceiver.java:42)/
>
> /at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe/
>
> /ssageReceiver.java:96)/
>
> /at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)/
>
> /at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq/
>
> /uest(HTTPTransportUtils.java:275)/
>
> /at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1/
>
> /20)/
>
> /at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)/
>
> /at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)/
>
> /at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl/
>
> /icationFilterChain.java:252)/
>
> /at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF/
>
> /ilterChain.java:173)/
>
> /at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV/
>
> /alve.java:213)/
>
> /at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV/
>
> /alve.java:178)/
>
> /at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j/
>
> /ava:126)/
>
> /at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j/
>
> /ava:105)/
>
> /at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal/
>
> /ve.java:107)/
>
> /at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav/
>
> /a:148)/
>
> /at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java/
>
> /:869)/
>
> /at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p/
>
> /rocessConnection(Http11BaseProtocol.java:664)/
>
> /at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo/
>
> /int.java:527)/
>
> /at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol/
>
> /lowerWorkerThread.java:80)/
>
> /at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP/
>
> /ool.java:684)/
>
> /at java.lang.Thread.run(Thread.java:595)/
>
> / /
>
> / /
>
> /My concern is that for the method that was invoked successfully, the
> transfer objects used as input and output are entirely different. But
> in the other two cases, where I got the exception, both the input and
> output transfer objects share the same transfer object (Account12 in
> the above mentioned exception) as an inner TO. Is the issue because of
> this? My doubt was stemmed from reading the following link.
> https://issues.apache.org/jira/browse/AXIS2-1986/
>
> / I'm pretty stuck on this part.. Please help me as this is something
> that is needed urgently./
>
> / /
>
> /Thanks in advance,/
>
> /Regards,/
>
> /Anumodh K.S./
>
> / /
>
>  CAUTION - Disclaimer *
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
> solely for the use of the addressee(s). If you are not the intended
> recipient, please notify the sender by e-mail and delete the original
> message. Further, you are not to copy, disclose, or distribute this
> e-mail or its contents to any other pers

Re: Axis 2 client part of web app

2007-10-14 Thread Srikanth Muthyala

Hi Keith, 

Thanks for your tip to use TCP Monitor. 
I ran the client using both main method and web app. The difference I noticed 
in request was the header (see below) - other remains the same. 

http://schemas.xmlsoap.org/soap/envelope/ " 
xmlns:wsa=" http://www.w3.org/2005/08/addressing";> 
 
  http://localhost:8080/RTBCustomer/services/RtbCallEvent 
  urn:uuid:CEE8CBBEB2653D48CD1192428093191 
  "" 
 
 

Again looking at the fault 
Faultcode = { http://www.w3.org/2005/08/addressing }ActionNotSupported 
Reason = The server did not recognise the action which it received: 

...makes it obvious the header is the culprit. How do I fix this?? FYI, I 
included req/response messages below. 

Regards, 

Srikanth Muthyala 

Main Method request 
POST /RTBCustomer/services/RtbCallEvent HTTP/1.1 
Content-Type: text/xml; charset=UTF-8 
SOAPAction: "" 
User-Agent: Axis2 
Host: 127.0.0.1:8080 
Transfer-Encoding: chunked 

1b1 
http://schemas.xmlsoap.org/soap/envelope/";>sdfsdsdfsdfdsparamparamsdfsuccessq
 
0 

Main Method response 
HTTP/1.1 200 OK 
Server: Apache-Coyote/1.1 
Content-Type: text/xml;charset=UTF-8 
Transfer-Encoding: chunked 
Date: Mon, 15 Oct 2007 06:00:54 GMT 

109 
http://schemas.xmlsoap.org/soap/envelope/";>true
 
0 

Web app request 
POST /RTBCustomer/services/RtbCallEvent HTTP/1.1 
Content-Type: text/xml; charset=UTF-8 
SOAPAction: "" 
User-Agent: Axis2 
Host: 127.0.0.1:8080 
Transfer-Encoding: chunked 

2ef 
http://schemas.xmlsoap.org/soap/envelope/ " xmlns:wsa=" 
http://www.w3.org/2005/08/addressing";>http://localhost:8080/RTBCustomer/services/RtbCallEventurn:uuid:CEE8CBBEB2653D48CD1192428093191""30779377474759249921344.5360+10Originating+61396261104962611002007092501200920070925012015group1
 
0 


Web app response 
HTTP/1.1 500 Internal Server Error 
Server: Apache-Coyote/1.1 
Content-Type: text/xml;charset=UTF-8 
Transfer-Encoding: chunked 
Date: Mon, 15 Oct 2007 06:17:45 GMT 
Connection: close 

285 
http://schemas.xmlsoap.org/soap/envelope/ " xmlns:wsa=" 
http://www.w3.org/2005/08/addressing";>http://www.w3.org/2005/08/addressing/faulturn:uuid:CEE8CBBEB2653D48CD1192428093191""wsa:ActionNotSupportedThe
 [action] cannot be processed at the receiver. 
0 







- Original Message - 
From: "keith chapman" <[EMAIL PROTECTED]> 
To: axis-user@ws.apache.org 
Sent: Monday, 15 October 2007 02:14:19 PM (GMT+1000) Australia/Sydney 
Subject: Re: Axis 2 client part of web app 

Hi Srikanth, 

Can you use TCP-Monitor (U can use the eclipse plugin) and capture the request 
and responses in the two cases and post it here. That'll help diagnose the 
problem. 

Thanks, 
Keith. 


On 10/15/07, Srikanth Muthyala < [EMAIL PROTECTED] > wrote: 


I have a client code generated using Axiscode generator in eclipse. If I make a 
call to the service when client is running as a standalone main method it works 
fine but when the same code is called while running in web app it gets fault 
Faultcode = { http://www.w3.org/2005/08/addressing }ActionNotSupported 
Reason = The server did not recognise the action which it received: 

-I tried running cient and server on two different hosts and same host - no 
change. 

This is my services.xml 

 
 
 
 
     
         
            http://www.w3.org/ns/wsdl/in-out " 
class="com.customer.service.rtbcallevent.RtbCallEventMessageReceiverInOut"/> 
         
         
com.customer.service.rtbcallevent.RtbCallEventSkeleton 
        true 
        true 
        http://www.w3.org/ns/wsdl/in-out "> 
        \"\" 
            
urn:rtbCallEvent/wsdl:rtbCallEventSEI:callEventResponse
 
         
     
 

This is my java code 
                        RtbCallEventStub stub = new RtbCallEventStub(" 
http://10.96.201.30:8080/RTB/services/RtbCallEvent "); 
                        CallEvent7 callEvent = new CallEvent7(); 
                        CallEvent param = new CallEvent(); 
                        
                        param.setAnswerTime("param"); 
                        param.setCalledNumber("param"); 
                        param.setCallingNumber("sdfds"); 
                        param.setDirection("sdf"); 
                        param.setGroup("successq"); 
                        param.setRecordId("sdfsd"); 
                        param.setReleaseTime("sdf"); 
                        
                        callEvent.setCallEvent(param ); 
                        CallEventResponse6 resp = stub.callEvent(callEvent); 
                        
System.out.println(resp.getCallEventResponse().getResult()); 
                        
                } catch (AxisFault e) { 
                        // TODO Auto-generated catch block 
                        System.out.println(e.getFaultCode()); 
                        System.out.println(e.getMessage ()); 
                        System.out.println(e.getReason()); 
                } catch (RemoteException e) { 
                        // TODO Auto-generated catch block 
                        e.printStackTrace(); 
 

RE: [wsf-php-user] key failure

2007-10-14 Thread shams jawaid

Hi kaushalye,  i did this in tomcat 5.5 then in tomcat 6. i attached both the 
outputs in the tomcat window and in tcpmon,  thanks > Date: Mon, 15 Oct 2007 
11:07:12 +0530> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> CC: [EMAIL 
PROTECTED]; axis-user@ws.apache.org> Subject: Re: [wsf-php-user] key failure> > 
Hi Shams,> I think if you could attach a trace of the SOAP message, 
Rampart/Java > guys may be able to find the reason for the fault string in the 
> response. The complaint is about a missing encryption result for an > 
Id(NULL?), which they have to match with the message. The PHP client and > its 
configurations seems to be correct.> -Kaushalye> > shams jawaid wrote:> > Hi,> 
> > > i am currently trying to encrypt and sign a simple service from a php > > 
client to a java web service. the request is encrypted and signed, but > > the 
service side response recieves this error in tcpmon:> > > > 
Missing encryption result for id : > > > > and in 
tomcat, this is the output:> > > > INFO: Server startup in 3734 ms> > [INFO] 
Verification successful for URI '#SigID-402a0180-2c19-4f2e'> > [INFO] 
Verification successful for URI '#SigID-a673ae2e-5835-4d1f'> > > > in my client 
side, i have included the keys:> > > > $my_cert = 
ws_get_cert_from_file('alice_cert.cert'); // client side > > certificate( 
public key)> > $my_key = ws_get_key_from_file('alice_key.pem'); // client side 
key> > $rec_cert = ws_get_cert_from_file('bob_cert.cert'); // server side > > 
certificate (public key )> > > > and in my service side key (service.jks) 
referenced like this:> > > > > > > >  
> 
name='org.apache.ws.security.crypto.merlin.keystore.type'>JKS> 
>  > 
name='org.apache.ws.security.crypto.merlin.file'>service.jks> > 
 > 
name='org.apache.ws.security.crypto.merlin.keystore.password'>apache>
 > > > > > > > 
> > 
 > 
name='org.apache.ws.security.crypto.merlin.keystore.type'>JKS> 
>  > 
name='org.apache.ws.security.crypto.merlin.file'>service.jks> > 
 > 
name='org.apache.ws.security.crypto.merlin.keystore.password'>apache>
 > > > > > > > > > i 
have includeded :> > > > [1] alice_cert> > [2] bob_cert> > [3] bob_key 
(although i am unsure whether this was imported properly, > > and am thinking 
this might be the cause of the error)> > > > i have attached my 
service.properties, service.jks, PWCBHandler.class, > > services.xml and my 
service file.> > > > i have also attached my client side files including the 
alice_key, > > alice_cert, bob_cert, php client file and the policy.xml file.> 
> > > If anyone can solve this error out there it would be a tremendous > > 
help, or if anyone can create a keystore properly if i have not done > > so, 
please do. i suspect this is the reason why. the keystore attached > > is 
service.jks> > > > thanks alot!> > > > > >> > 
> > The 
next generation of MSN Hotmail has arrived - Windows Live Hotmail > > 
> > 
> >> > 
___> > Wsf-php-user mailing list> > 
[EMAIL PROTECTED]> > http://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user> > > 
> > -- > http://kaushalye.blogspot.com/> http://wso2.org/> 
_
100’s of Music vouchers to be won with MSN Music
https://www.musicmashup.co.ukPOST /axis2/services/Math HTTP/1.1
User-Agent: Axis2/C
SOAPAction: "urn:add"
Content-Length: 6765
Content-Type: text/xml;charset=UTF-8
Host: 127.0.0.1:8181

http://schemas.xmlsoap.org/soap/envelope/";>
   http://www.w3.org/2005/08/addressing";>
  http://localhost:8181/axis2/services/Math
  urn:add
  e7f67741-40fb-4c26-8a46-75bb6fc877c1
  http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";>
 http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";
 wsu:Id="CertID-928c531c-c47f-46a2" 
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";
 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>MIIDDDCCAfSgAwIBAgIQM6YEf7FVYx/tZyEXgVComTANBgkqhkiG9w0BAQUFADAwMQ4wDAYDVQQKDAVPQVNJUzEeMBwGA1UEAwwVT0FTSVMgSW50ZXJvcCBUZXN0IENBMB4XDTA1MDMxOTAwMDAwMFoXDTE4MDMxOTIzNTk1OVowQjEOMAwGA1UECgwFT0FTSVMxIDAeBgNVBAsMF09BU0lTIEludGVyb3AgVGVzdCBDZXJ0MQ4wDAYDVQQDDAVBbGljZTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAoqi99By1VYo0aHrkKCNT4DkIgPL/SgahbeKdGhrbu3K2XG7arfD9tqIBIKMfrX4Gp90NJa85AV1yiNsEyvq+mUnMpNcKnLXLOjkTmMCqDYbbkehJlXPnaWLzve+mW0pJdPxtf3rbD4PS/cBQIvtpjmrDAU8VsZKT8DN5Kyz+EZsCAwEAAaOBkzCBkDAJBgNVHRMEAjAAMDMGA1UdHwQsMCowKKImhiRodHRwOi8vaW50ZXJvcC5iYnRlc3QubmV0L2NybC9jYS5jcmwwDgYDVR0PAQH/BAQDAgSwMB0GA1UdDgQWBBQK4l0TUHZ1QV3V2QtlLNDm+PoxiDAfBgNVHSMEGDAWgBTAnSj8wes1oR3WqqqgHBpNwkkPDzANBgkqhkiG9w0BAQUFAAOCAQEABTqpOpvW+6yrLXyUlP2xJbEkohXHI5OWwKWleOb9hlkhWntUalfcFOJAgUyH30TTpHldzx1+vK2LPzhoUFKYHE1

RE: What is the difference between Hello Client and Hello Server?

2007-10-14 Thread Chen, Lizhao
Please follow the tutorial step by step, then you should know it.

 

Best Regards!

 

Lizhao Chen



From: H.Z [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 13, 2007 11:49 PM
To: axis-user@ws.apache.org
Subject: What is the difference between Hello Client and Hello Server? 

 

I am brand new to web service.
I always see the introductive example of Hello Client and Hello Server.
What is the purpose?
Can you please clarify these concepts?

Thanks 

 

  



Tonight's top picks. What will you watch tonight? Preview the hottest
shows
  on Yahoo! TV. 


The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs



Re: getting java.lang.NoClassDefFoundError while invocation

2007-10-14 Thread Deepal jayasinghe
Hi Anumodh
Is this a code-generated service ?

Thanks
Deepal
>
> /Hi,/
>
> /I had sent this mail earlier, but got no reply. I’m unable to proceed
> further. Hence, resending it again./
>
> /I’m using axis2 1.3 for developing a web service (3 methods) along
> with spring and hibernate. I was successful in deploying the web
> service and also invoking one of the methods. But on invocation of the
> other two methods, I’m getting an exception as follows:/
>
> / /
>
> / [ERROR] sample/sampleList/_2007/_01/_01/Account12$Factory/
>
> /java.lang.NoClassDefFoundError] sample/sampleList/Account12$Factory/
>
> /at ]
> sample.sampleList._2007._01._01.GetValue$Factory.parse(.GetValue.java:905)/
>
> /at ]
> sample.sampleList._2007._01._01.GetRequest$Factory.parse(GetRequest.java:446)/
>
> /]
> sample.sampleList._2007._01._01.SampleWebServiceMessageReceiverInOut.fromOM
> (SampleWebServiceMessageReceiverInOut.java:250)/
>
> /at ]
> sample.sampleList._2007._01._01.SampleWebServiceMessageReceiverInOut..invokeBusinessLogic(SampleWebServiceMessageReceiverInOut.java:43/
>
> /)/
>
> /at
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBus/
>
> /inessLogic(AbstractInOutSyncMessageReceiver.java:42)/
>
> /at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe/
>
> /ssageReceiver.java:96)/
>
> /at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)/
>
> /at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq/
>
> /uest(HTTPTransportUtils.java:275)/
>
> /at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1/
>
> /20)/
>
> /at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)/
>
> /at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)/
>
> /at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl/
>
> /icationFilterChain.java:252)/
>
> /at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF/
>
> /ilterChain.java:173)/
>
> /at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV/
>
> /alve.java:213)/
>
> /at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV/
>
> /alve.java:178)/
>
> /at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j/
>
> /ava:126)/
>
> /at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j/
>
> /ava:105)/
>
> /at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal/
>
> /ve.java:107)/
>
> /at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav/
>
> /a:148)/
>
> /at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java/
>
> /:869)/
>
> /at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p/
>
> /rocessConnection(Http11BaseProtocol.java:664)/
>
> /at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo/
>
> /int.java:527)/
>
> /at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol/
>
> /lowerWorkerThread.java:80)/
>
> /at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP/
>
> /ool.java:684)/
>
> /at java.lang.Thread.run(Thread.java:595)/
>
> / /
>
> / /
>
> /My concern is that for the method that was invoked successfully, the
> transfer objects used as input and output are entirely different. But
> in the other two cases, where I got the exception, both the input and
> output transfer objects share the same transfer object (Account12 in
> the above mentioned exception) as an inner TO. Is the issue because of
> this? My doubt was stemmed from reading the following link.
> https://issues.apache.org/jira/browse/AXIS2-1986/
>
> / I’m pretty stuck on this part.. Please help me as this is something
> that is needed urgently./
>
> / /
>
> /Thanks in advance,/
>
> /Regards,/
>
> /Anumodh K.S./
>
> / /
>
>  CAUTION - Disclaimer *
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
> solely for the use of the addressee(s). If you are not the intended
> recipient, please notify the sender by e-mail and delete the original
> message. Further, you are not to copy, disclose, or distribute this
> e-mail or its contents to any other person and any such actions are
> unlawful. This e-mail may contain viruses. Infosys has taken every
> reasonable precaution to minimize this risk, but is not liable for any
> damage you may sustain as a result of any virus in this e-mail. You
> should carry out your own virus checks before opening the e-mail or
> attachment. Infosys reserves the right to monitor and review the
> content of all messages sent to or from this e-mail address. Messages
> sent to or from this e-mail address may be stored on the Infosys
> e-mail system.
> ***INFOSYS End of Disclaimer INFOSYS***

Re: [Axis2] Stopping display of WSDL

2007-10-14 Thread Amila Suriarachchi
On 10/11/07, Nathan Hook <[EMAIL PROTECTED]> wrote:
>
>
> Is there a way to stop Axis2 from displaying a WSDL when a request is made
> to a service with the ?wsdl ending?


why you want to do this. if you do not show your wsdl how other can access
your service?
you can add a servelt filter to filt the reqeusts to the axis2 and send
nothing if it ends with the ?wsdl.

Amila.

E.g.:
>
> http:///xxx.com/services/buysomething?wsdl
>
> I've looked for a way to do this, but I'm afraid that I'm looking in the
> wrong places.
>
> Any friendly push in the right direction is appreciated.
>
> Thank you for your time.
> _
> Boo!Scare away worms, viruses and so much more! Try Windows Live OneCare!
>
> http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


Re: wsdl2java generate abstract class rather than skeleton

2007-10-14 Thread Amila Suriarachchi
you can generate an interface to your skelton using -ssi option.
here the problem is wsdl2java should know the implementation class name to
put in the services.xml.
you can keep your correct implementation class some where and always replace
the generated one with it.

Amila.

On 10/13/07, Michael Potter <[EMAIL PROTECTED]> wrote:
>
> Axis2 crew,
>
> I use wsdl2java to generate java code and then modify the
> skeleton.java file to meet my needs.  This is a bit awkward because if
> I change my .wsdl file and then regenerate, my hand modified skeleton
> with be wiped out (or out of date).
>
> What I think would be better is if wsdl2java were to generate an
> abstract class.  I could code my own class that would extend the
> abstract class.  I would get a compile error if my class did not match
> the abstract class after a fresh run of wsdl2java.
>
> I am new to axis2 so I am hoping someone thinks this is a good idea
> and has already done it, or someone thinks this is a bad idea because
> they have a better technique to deal with regenerating the java code
> with wsdl2java.
>
> Thank you,
> --
> Michael Potter
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


Re: Soap Faults and Exception

2007-10-14 Thread Amila Suriarachchi
what is the data bind you use?
Axis2 generates a seperate class for every element. and each fault message.
so if an element with the wsdl namespace with the name same as the fault
message then both classes would have the same package and class names.

to avoid this use -p option to specify a seperate package name for wsdl
namespace.


On 10/12/07, Kahler, Jason J (US SSA) <[EMAIL PROTECTED]> wrote:
>
>  I am using Axis2 1.3
>
> I have defined a custom Fault in my WSDL. It worked fine using axis 1.
>
> But now when I run WSDL2code via the maven2 pluggin I get errors when I
> try to compile my classes such as:
>
>
>
> java:[63,17] incompatible types
>
> found   : wfnp.ServiceException
>
> required: java.lang.Throwable
>
>
>
> the wfnp.ServiceException class doesn't even extend any kind of throwable,
> so how can my classes actually
>
> throw it ? I am very frustrated and confused.
>
>
>
> Jay
>
>
>



-- 
Amila Suriarachchi,
WSO2 Inc.


Re: AxisCallback stuck the application

2007-10-14 Thread Amila Suriarachchi
On 10/12/07, Huitang Li <[EMAIL PROTECTED]> wrote:
>
>
> With further debugging, I found something interesting: when the
> onMessage() method is done in AxisCallback, the application proceeds on
> the method  "public void run() " in class OutInAxisOperationClient, and
> then somehow the application seems hanging for ever.


I think the problem is here. The correct class to use is AxisCallback.
Callback class is a  depricated class.
(see the  class comments).
If it work fine when we change to the depricated class that means generated
code works fine.
on the other hand it is ok to leave onComple method without doing any thing.
since it is a method to
use if some one need it.
(It is better to add this method to generated callback class and expose it
to user)

Can you send your wsdl or a part to repoduce the problem?

Amila.

I have not downloaded the axis2 source code to debug, but  I believe
> that something is not right after the AxisCallback finishes onMessage()
> and then returns the control to the run() method in
> OutInAxisOperationClient.
>
>
> Thanks.
>
>
>
> Rajith Attapattu wrote:
> > Put you notification logic in the
> >
> >  public void onComplete() {
> > //nothing here
> > }
> >
> > So when it completes (either fault/error or sucess) , this method will
> > be called.
> >
> > Here is a faily elementry example (not the most elegant)
> > Modify the generated class as follows.
> >
> >  public void onComplete() {
> > _complete = true;
> > }
> >
> > and add a isComplete Method
> >
> > boolean isComplete()
> > {
> >   return _complete;
> > }
> >
> > you can now use it like the old Callback class.
> >
> > while ( !_axisCallBack.isComplete())
> > {
> >Thread.sleep(1000);
> > }
> >
> > Hope this helps.
> >
> > On 10/12/07, *Huitang Li* <[EMAIL PROTECTED]
> > > wrote:
> >
> > Thanks, Deepal. I will be happy to create a JRIA. But can you show
> > me a
> > good example using this new API in the client code? I am working on
> a
> > project, and I cannot wait for the next Axis2 release.
> >
> > Thanks.
> >
> > Huitang
> >
> >
> >
> > Deepal jayasinghe wrote:
> > > Hi Huitang ,
> > > Definitely a bug in codegen , please create a JRIA.
> > >
> > > Thanks
> > > Deepal
> > >
> > >> All these codes are auto-generated by Axis2 1.3 wsdl2java
> > command. I
> > >> do not know whether it is an old callback or not. But it does
> says:
> > >>
> > >> _operationClient.setCallback(new
> > >> org.apache.axis2.client.async.AxisCallback() {
> > >> // all the codes that I pasted in my previous email.
> > >> }
> > >>
> > >> In the generated code, the onComplete() method looks like this:
> > >>
> > >> public void onComplete() {
> > >>// Do nothing by default
> > >>}
> > >>
> > >>
> > >> Maybe there is something incorrectly generated by wsdl2java?
> > >>
> > >>
> > >>
> > >>
> > >> Rajith Attapattu wrote:
> > >>
> > >>> What do you mean by the "application is stuck" ? How does your
> > >>> application figure out if a response is received?
> > >>> Can you please cut paste the code that uses the AxisCallback.
> > >>>
> > >>> Does the onMessage, onError or onFault methods get called?
> > >>> If so why do u say it is stuck?
> > >>>
> > >>> Looks like the onMessage and onError methods get called, bcos
> > u seem
> > >>> to have put the old callback there and you mentioned that it
> > works.
> > >>>
> > >>>
> > >>> public void onComplete() {
> > >>> //nothing here
> > >>> }
> > >>>
> > >>>
> > >>> I also see that the onComplete method is empty.
> > >>>
> > >>> --
> > >>> Rajith Attapattu
> > >>> Red Hat
> > >>> Blog http://mutlix.blogspot.com/
> > >>>
> > >>
> >
> -
> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > 
> > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > >>
> > >>
> > >>
> > >
> > >
> > >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > 
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> >
> >
> >
> >
> > --
> > Rajith Attapattu
> > Red Hat
> > Blog http://mutlix.blogspot.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


Re: problem when axessing a method

2007-10-14 Thread Deepal jayasinghe
After doing following change your code works for me,
> Hi everybody,
> I wrote a basic web service:  
>   public String test (String t) {
> return (t);
>   }
>
> when deployed, I have access to it easily throught my broser: 
>   http://localhost:8080/axis2/services/Test/test?t=I love axis
>
> But when writing a java client:
>   public static void main(String[] args) throws Exception {
> ServiceClient client = new ServiceClient();
> // create option object
> Options opts = new Options();
> //setting target EPR
> opts.setTo(new
> EndpointReference("http://localhost:8080/axis2/services/Test/test";));
> //Setting action ,and which can be found from the wsdl of the
> service
> opts.setAction("urn:test");
> client.setOptions(opts);
> OMElement res = client.sendReceive(createPayLoad());
> System.out.println(res);
>
> }
>
> public static OMElement createPayLoad() {
> OMFactory fac = OMAbstractFactory.getOMFactory();
> OMNamespace omNs = fac.createOMNamespace("http://axis.org";, "ns1");
>   
 OMNamespace omNs = fac.createOMNamespace("http://ws.apache.org/axis2";,
"ns1");

Thanks
Deepal


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



Re: Axis 2 client part of web app

2007-10-14 Thread keith chapman
Hi Srikanth,

Can you use TCP-Monitor (U can use the eclipse plugin) and capture the
request and responses in the two cases and post it here. That'll help
diagnose the problem.

Thanks,
Keith.

On 10/15/07, Srikanth Muthyala <[EMAIL PROTECTED]> wrote:
>
> I have a client code generated using Axiscode generator in eclipse. If I
> make a call to the service when client is running as a *standalone* main
> method it *works* fine but when the same code is called while running in
> web app it gets fault
> Faultcode = {http://www.w3.org/2005/08/addressing}ActionNotSupported
> Reason = The server did not recognise the action which it received:
>
> -I tried running *cient* and server on two different hosts and same host -
> no change.
>
> *This is my services.xml*
>
> 
> 
> 
> 
> 
> 
> http://www.w3.org/ns/wsdl/in-out";
> class="com.customer.service.rtbcallevent.RtbCallEventMessageReceiverInOut"/>
>
> 
> 
> com.customer.service.rtbcallevent.RtbCallEventSkeleton
> true
> true
> http://www.w3.org/ns/wsdl/in-out";>
>
> \"\"
>
> urn:rtbCallEvent/wsdl:rtbCallEventSEI:callEventResponse
>
> 
> 
> 
>
> *This is my java code*
> RtbCallEventStub stub = new RtbCallEventStub("
> http://10.96.201.30:8080/RTB/services/RtbCallEvent";);
> CallEvent7 callEvent = new CallEvent7();
> CallEvent param = new CallEvent();
>
> param.setAnswerTime("param");
> param.setCalledNumber("param");
> param.setCallingNumber("sdfds");
> param.setDirection("sdf");
> param.setGroup("successq");
> param.setRecordId("sdfsd");
> param.setReleaseTime("sdf");
>
> callEvent.setCallEvent(param );
> CallEventResponse6 resp = stub.callEvent(callEvent);
>
> 
> System.out.println(resp.getCallEventResponse().getResult());
>
>
> } catch (AxisFault e) {
> // TODO Auto-generated catch block
> System.out.println(e.getFaultCode());
> System.out.println(e.getMessage());
> System.out.println(e.getReason());
> } catch (RemoteException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
>
> Any help will be appreciated.
>
> Regards,
>
> Srikanth Muthyala
>
>
>


-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/


getting java.lang.NoClassDefFoundError while invocation

2007-10-14 Thread Anumodh Sreedharan

Hi,
I had sent this mail earlier, but got no reply. I'm unable to proceed further. 
Hence, resending it again.
I'm using axis2 1.3 for developing a web service (3 methods) along with spring 
and hibernate. I was successful in deploying the web service and also invoking 
one of the methods. But on invocation of the other two methods, I'm getting an 
exception as follows:

 [ERROR] sample/sampleList/_2007/_01/_01/Account12$Factory
java.lang.NoClassDefFoundError] sample/sampleList/Account12$Factory
at ] 
sample.sampleList._2007._01._01.GetValue$Factory.parse(.GetValue.java:905)
at ] 
sample.sampleList._2007._01._01.GetRequest$Factory.parse(GetRequest.java:446)
] 
sample.sampleList._2007._01._01.SampleWebServiceMessageReceiverInOut.fromOM 
(SampleWebServiceMessageReceiverInOut.java:250)
at ] 
sample.sampleList._2007._01._01.SampleWebServiceMessageReceiverInOut..invokeBusinessLogic(SampleWebServiceMessageReceiverInOut.java:43
)
at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBus
inessLogic(AbstractInOutSyncMessageReceiver.java:42)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe
ssageReceiver.java:96)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
20)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:595)


My concern is that for the method that was invoked successfully, the transfer 
objects used as input and output are entirely different. But in the other two 
cases, where I got the exception, both the input and output transfer objects 
share the same transfer object (Account12 in the above mentioned exception) as 
an inner TO. Is the issue because of this? My doubt was stemmed from reading 
the following link. https://issues.apache.org/jira/browse/AXIS2-1986
 I'm pretty stuck on this part.. Please help me as this is something that is 
needed urgently.

Thanks in advance,
Regards,
Anumodh K.S.

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***



Axis 2 client part of web app

2007-10-14 Thread Srikanth Muthyala
I have a client code generated using Axiscode generator in eclipse. If I make a 
call to the service when client is running as a standalone main method it works 
fine but when the same code is called while running in web app it gets fault 
Faultcode = { http://www.w3.org/2005/08/addressing }ActionNotSupported 
Reason = The server did not recognise the action which it received: 

-I tried running cient and server on two different hosts and same host - no 
change. 

This is my services.xml 

 
 
 
 
     
         
            http://www.w3.org/ns/wsdl/in-out " 
class="com.customer.service.rtbcallevent.RtbCallEventMessageReceiverInOut"/> 
         
        com.customer.service.rtbcallevent.RtbCallEventSkeleton
 
        true 
        true 
        http://www.w3.org/ns/wsdl/in-out "> 
        \"\" 
            
urn:rtbCallEvent/wsdl:rtbCallEventSEI:callEventResponse
 
         
     
 

This is my java code 
                        RtbCallEventStub stub = new RtbCallEventStub(" 
http://10.96.201.30:8080/RTB/services/RtbCallEvent "); 
                        CallEvent7 callEvent = new CallEvent7(); 
                        CallEvent param = new CallEvent(); 
                        
                        param.setAnswerTime("param"); 
                        param.setCalledNumber("param"); 
                        param.setCallingNumber("sdfds"); 
                        param.setDirection("sdf"); 
                        param.setGroup("successq"); 
                        param.setRecordId("sdfsd"); 
                        param.setReleaseTime("sdf"); 
                        
                        callEvent.setCallEvent(param ); 
                        CallEventResponse6 resp = stub.callEvent(callEvent); 
                        
System.out.println(resp.getCallEventResponse().getResult()); 
                        
                } catch (AxisFault e) { 
                        // TODO Auto-generated catch block 
                        System.out.println(e.getFaultCode()); 
                        System.out.println(e.getMessage()); 
                        System.out.println(e.getReason()); 
                } catch (RemoteException e) { 
                        // TODO Auto-generated catch block 
                        e.printStackTrace(); 
                } 

Any help will be appreciated. 

Regards, 

Srikanth Muthyala 




Re: Differences between Axis 1.4 and Axis2 client generation

2007-10-14 Thread Anne Thomas Manes
You need to specify the "unwrap" option (-uw) when running wsdl2java.

Anne

On 10/8/07, TimDog <[EMAIL PROTECTED]> wrote:
>
> I'm using Axis2 to generate the  WSDL for my service...and I have a nagging
> question in the back of my mind.
>
> Why are clients generated by the Axis2 wsdl2java (the default adb) of the
> form
>
> stub.function(FunctionObj obj)
>
> And the clients generated from the Axis1.4 wsdl2java of the form
>
> stub.function(param1, param2, param3)
>
> ?
>
> Is there a way to make the Axis2 wsdl2java produce a stub that I can just
> call methods and parameters like the 1.4 clients instead of messing around
> with all of this object indirection?
>
> It seems(to me) that should be added to the client stub automatically,
> because we're doing all of that coding over and over again and it's
> encapsulated fairly easily.
>
>
> E.g.
> ///The Axis 1.4 Client
>
> SoapBindingStub stub;
> try {
> stub = (SoapBindingStub)
> new 
> ISoapBindingStubServiceServiceLocator().getsoapbindingstub(new
> URL(url));
>  Object resultObj = stub.function(param1, param2, 
> param3);
> }
> catch (javax.xml.rpc.ServiceException jre) {
> jre.printStackTrace();
> }
> catch (RemoteException e) {
> e.printStackTrace();
> } catch (MalformedURLException e) {
> e.printStackTrace();
> }
>
> /
> The Axis2 Client
> SoapBindingStub stub;
> try {
> stub = (SoapBindingStub)
> new SoapBindingStub(test.getServiceUrl());
> SoapBindingStub.FunctionObj functionObj = new
> SoapBindingStub.FunctionObj();
> function.setParam1(param1);
> function.setParam2(param2);
> SoapBindingStub.FunctionResponseObj responseObj =
> stub.function(functionObj);
> Object resultObj = responseObj.getReturn();
>
> }
> catch(Exception e){
> System.err.println("Service Loaded");
> }
>
> --
> View this message in context: 
> http://www.nabble.com/Differences-between-Axis-1.4-and-Axis2-client-generation-tf4589968.html#a13102388
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: AXIS2 WSDL2Java (ADB) - XSDs with elementFormdefault=qualifed

2007-10-14 Thread Anne Thomas Manes
Joe,

The two messages below are semantically equivalent -- except that the Axis2
request specifies type information (xsi:type attribute) in the
ns2:ClaimNumberAssignmentRequest element. This type information may be
what's causing trouble for the service provider. Possibly the element is
defined with an abstract type or as part of a substitution group, and
therefore Axis2 is compelled to specify the type.

Anne

On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hello,  AXIS2-366  shows it was resolved but does not specify the version
> it was fixed in.  AXIS2-747 refers to using XLMBeans rather than ADB but
> seems to be related to namespace prefix missing on child elements.
>
> Listed below is what is the payload (in the SOAP body) using AXIS2.  Note
> the first  namespace prefix should be referenced for the child elements and the xmlns="
> ..." in the  should not be there.  See Service Provider example.
> The question is are these 2 requests functionally equivalent or is there
> something wrong when using the elementFormdefault="qualified" attribute with
> AXIS2?
>
> AXIS 2 Request:
>
> xmlns:ns2="
> http://www.companyX.com/us/ins/product/disability/custvendext";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:type
> ="ns2:ClaimNumberAssignmentRequest">
> http://www.companyX.com/us/ins/product/disability/custvendext/typelib";>
>10
>
>   aSourceID
>   aSourceReference
>
>
>   OPMA
>   OPMI
>
> 
>  
>
> Service Provider example:
>
>xmlns:ext="
> http://www.companyX.com/us/ins/product/disability/custvendext";
>   xmlns:tl="
> http://www.companyX.com/us/ins/product/disability/custvendext/typelib";>
>   
> 1.0
> 
>   NBH
>   T
> 
> 
>   5
>   6
> 
>   
> 
>
>
>  *"Amila Suriarachchi" <[EMAIL PROTECTED]>*
>
>
>
>
>
> *10/08/2007 01:45 AM*
> Please respond to axis-user@ws.apache.org   From
> *"Amila Suriarachchi" <[EMAIL PROTECTED]>*  To
> axis-user@ws.apache.org  cc
>
>  Subject
> Re: AXIS2 WSDL2Java (ADB) - XSDs with elementFormdefault=qualifed
>
>
>
>
>
>
>
>
> On 10/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> <[EMAIL PROTECTED]
> * <[EMAIL PROTECTED]>> wrote:
>
> Hello, it appears this problem had been reported before in *
> apache.org/jira*  but has gone unresolved.  I
> currently have schemas that have this setting specified but within the SOAP
> body the elements are missing the namepace prefix.
>
> could you please  show us the jira number. or create a new jira with your
> xsd file?
>
> Does anyone know why this has not been fixed or if there is a version that
> has it worked or has been fixed.  It may just  be broken in the more recent
> versions.  I have tried this in versions 1.2 and 1.3 with no luck.
>
> Thanks ... Joe
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>


Re: Is Java2WSDL WRAPPED style WS-I conform?

2007-10-14 Thread Anne Thomas Manes
Just to clarify:

Axis supports unwrapped doc/lit, wrapped doc/lit, rpc/lit, and
rpc/encoded. All but rpc/encoded is WS-I compliant. See this blog post
for info about Axis styles:
http://atmanes.blogspot.com/2007/03/axis-message-style.html

Axis2 supports unwrapped doc/lit, wrapped doc/lit (with some
limitations), and rpc/lit. Axis2 supports a lot of advanced features
which are outside the scope of WS-I Basic Profile and WS-I Basic
Security Profile, and some of those features are not WS-I compliant.
Non-WS-I compliant features include:
- SOAP 1.2
- WSDL 2.0
- WS-Addressing
- Non-unique message signatures based on the QName of the child
element of the SOAP Body

Anne

On 10/9/07, Walker, Jeff <[EMAIL PROTECTED]> wrote:
> Hi Michael,
> wrapped is a subtype of Doc/Lit. Its full name is Document Literal
> Wrapped. Go here to learn differences between RPC, Doc/Lit and
> Doc/Lit-Wrapped:
> http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/
>
> Axis1: With Axis1 you can build web services that use RPC, Doc/Lit and
> Doc/Lit-Wrapped.
> Axis2: With Axis2 you can build web services that use Doc/Lit and
> Doc/Lit-Wrapped, but not RPC. (This is my belief).
>
> Now, RPC is the 'old' way of doing web services and is quickly dying
> out. Axis1 is the old version of Axis and it is recommended that you
> switch to Axis2.
> -jeff
>
>
>
>
> -Original Message-
> From: Deepal jayasinghe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 09, 2007 1:42 AM
> To: axis-user@ws.apache.org
> Subject: Re: Is Java2WSDL WRAPPED style WS-I conform?
>
>
> > I'm referring to Axis1. Does this matter??
> >
> If you are referring to Axis1 then my knowledge about Axis1 not enough
> to answer this question.
>
> Thanks
> Deepal
> > Michael
> >
> > Deepal Jayasinghe wrote:
> >
> >> Hi Michael,
> >> Were you referring to Axis1 or Axis2.
> >>
> >>
> >>> The only types of SOAP bindings supported is document/literal and
> >>> rpc/literal.
> >>> If I generate my wsdl using Java2WSDL with style WRAPPED, i get a
> >>> document/literal wsdl.
> >>>
> >>> But I don't understand the difference between WRAPPED and DOCUMENT
> style?
> >>> Are both WS-I conform?
> >>>
> >>> Regards,
> >>> Michael
> >>>
> >>>
> >>>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
>
>
> --
> Thanks,
> Deepal
> 
> "The highest tower is built one brick at a time"
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: first post. question on complex types

2007-10-14 Thread Anne Thomas Manes
Are you using Axis or Axis2?

(I'm assuming that you're using Axis because your message contains
xsi:type information.)  In Axis you must define your type mappings in
the WSDD file. The WSDD should be auto-generated when you run
WSDL2Java. But that only takes care of the server side. You also must
define the type mappings on the client side. That can be done in code
or with a client configuration file.

But since you are just starting out, I suggest you start over with Axis2.

Anne

On 10/10/07, Vaduvoiu Tiberiu <[EMAIL PROTECTED]> wrote:
>
> If you have a web service that returns a simple string u simply write
>
> string result = call.invoke(Object...)
>
> but my web service returns a complex type...and I don't know how to "save"
> that type...because I need a deserializer and I don't know how exactly to do
> that. I understood that if the complex type is called let's say User then I
> have to do a User class with setters and getters but I don't know how to
> store the result from the invoke method.
>
>
>
> - Original Message 
> From: Amila Suriarachchi <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Sent: Wednesday, October 10, 2007 9:29:35 AM
> Subject: Re: first post. question on complex types
>
>  what you want to do exactly?
>
> do you have a web service an want to invoke it using a Axis2 client?
>
> you don't have to populate the response. Axis 2 populates it and returns the
> correct
> response object.
>
> Amila.
>
> On 10/9/07, Vaduvoiu Tiberiu <[EMAIL PROTECTED]> wrote:
> > Hi to everyone. This is my first post and I have a small question about
> retrieving a complex type from a client. Read the documentation on
> axis(Building stubs, skeletons, and data types from WSDL)basic examples
> worked out well, I'm a little stuck on one example ...there is a web service
> that returns a complex type ...the response looks like
> >
> > 
> >   string
> >   string
> > ...
> >
> > so from what I understood I need to use wsdl2java to generate a UserName
> class that implements
> > java.io.Serializable. Ok I done that..created that class with getters and
> setters. But how do I set the variables in that class with the results from
> the invoke method?
> >
> > I keep getting: No deserializer defined for array type {http}UserName
> >
> > it's probably easy but I'm missing something here.
> > some pointers would be appreciate.
> >
> > Cheers
> > Tibi
> >
> >
> >
> >
> >
> >
> >
> >
> >
> 
> > Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
> news, photos & more.
> > http://mobile.yahoo.com/go?refer=1GNXIC
> >
> >
> -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>
>  
> Moody friends. Drama queens. Your life? Nope! - their life, your story.
>  Play Sims Stories at Yahoo! Games.

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