RE: Newbie needs help/resources crafting AXIS2 services.xml

2009-12-22 Thread c-tech-aaxis
Good evening all,

Kamran is correct, because of certain limitations I used MyEclipse to
generate JAX-WS web services from a WSDL file.  I haven't changed any
annotations so wsdlLocation does correctly point to the relative location
of the WSDL is located.

What I've seen today is that with a freshly generated project the
in-Eclipse Tomcat correctly builds, deploys and serves the project (ie.
the full WSDL is served).  I have been using axis2-1.2.jar and other JARs
to build and then serve the very same project (w ant tasks), but a reduced
WSDL is served (sans complexTypes).  Comparing the in-Eclipse build vs the
ant-build, the only differences are a context.xml (which causes startup
errors if missing), an almost empty application.properties and
log4j.properties, and the 22 JARs I cobbled together to make compile-time
and serve-time errors disappear.  So I have to assume this is the victim
of annotations not telling the full WSDL story, though all annotations
seem to exist in the classes and on their fields.

Then I tried building and serving with the Eclipse-Tomcat's javaee.jar +
commons-logging, but the app never fully deploys (base webapp directory is
MyEclipse-specific).  I also tried another approach and downloaded the
AXIS2 1.3 zip file, but there is no axis2-1.3.jar in it, and several
others seem to be missing so that seems like a dead end.

Earlier I found out that I cannot directly use the zip-downloaded aar or
code generation tools for AXIS2 since I cannot find an Eclipse plugin
directory from the MyEclipse-fully-integrated IDE.  I did so on a second
machine (Eclipse-only) and the services.xml and other files of course
related to Java classes completely unrelated to the JAX-WS generated from
MyEclipse.

So I feel like I've tried every approach, and I am still looking for an
ant-build version as successful as the IDE version.  I'd at least like a
better understanding of what is going wrong here - is JAX-WS incompatible
with AXIS2?


Thanks,

-Chris


> It seems to me that the original poster is using JAX-WS.  As I understand
> it, wsimport, rather than wsdl2java is what he should be using?  Maybe I
> am
> wrong.  Also, if he is using jax-ws annotations, while I understand he can
> still use a services.xml, just to have axis2 use his wsdl, he just needs
> to
> set his @WebService annotation's wsdlLocation parameter.  Please correct
> me
> if%



RE: Newbie needs help/resources crafting AXIS2 services.xml

2009-12-11 Thread Kamran Shah
It seems to me that the original poster is using JAX-WS.  As I understand
it, wsimport, rather than wsdl2java is what he should be using?  Maybe I am
wrong.  Also, if he is using jax-ws annotations, while I understand he can
still use a services.xml, just to have axis2 use his wsdl, he just needs to
set his @WebService annotation's wsdlLocation parameter.  Please correct me
if I am wrong, I might not know what I am talking about, but this might
clear up my understanding as well.

 

--Kamran

 

From: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] 
Sent: Friday, December 11, 2009 3:10 AM
To: axis-user@ws.apache.org
Subject: Re: Newbie needs help/resources crafting AXIS2 services.xml

 

 

On Mon, Dec 7, 2009 at 9:44 PM,  wrote:

Good morning,

It appears my lack of being immersed in AXIS2 means nothing works quite
how I expect it to.  From a recent email on a different topic it sounds
like I need to set useOriginalwsdl in a services.xml file in my META-INF
directory for AXIS2 (1.3) to actually use the WSDL I was given.

Or perhaps part of the problem is that the WSDL is in META-INF/wsdl/ and
isn't where AXIS2 expects it to be?

Anyways, MyEclipse never generated a services.xml file.  In fact I'm just
deploying a WAR (what's an AAR?) which seems to be working but may be
confusing matters, what with combining JAX-WS and AXIS2.

The couple of brief examples of services.xml files I've found look to
recreate the basic definitions in the WSDL file, so I'm here in part to
ask for any good references to hand-crafting services.xml files -
primarily about what I need to include so the whole thing still works.
Or... with my setup will it even try to read the services.xml file since
the basic web services have worked so far (just not successfully with
complex types)?

So is the XML at the end of this a complete services.xml file where the
WSDL has a line:
   
and that service has types defined for the input and output?  Or do I need
to bring more of the WSDL into it?


generate the code to your wsdl with the wsdl2java tool. with -ss -sd
parameters. 
you will see a sample services.xml file under resource folder.

thanks,
Amila.



Thanks,

-Chris


--- services.xml? ---

  


 
   true
 





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

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.426 / Virus Database: 270.14.102/2556 - Release Date: 12/10/09
07:36:00



Re: Newbie needs help/resources crafting AXIS2 services.xml

2009-12-11 Thread Amila Suriarachchi
On Mon, Dec 7, 2009 at 9:44 PM,  wrote:

> Good morning,
>
> It appears my lack of being immersed in AXIS2 means nothing works quite
> how I expect it to.  From a recent email on a different topic it sounds
> like I need to set useOriginalwsdl in a services.xml file in my META-INF
> directory for AXIS2 (1.3) to actually use the WSDL I was given.
>
> Or perhaps part of the problem is that the WSDL is in META-INF/wsdl/ and
> isn't where AXIS2 expects it to be?
>
> Anyways, MyEclipse never generated a services.xml file.  In fact I'm just
> deploying a WAR (what's an AAR?) which seems to be working but may be
> confusing matters, what with combining JAX-WS and AXIS2.
>
> The couple of brief examples of services.xml files I've found look to
> recreate the basic definitions in the WSDL file, so I'm here in part to
> ask for any good references to hand-crafting services.xml files -
> primarily about what I need to include so the whole thing still works.
> Or... with my setup will it even try to read the services.xml file since
> the basic web services have worked so far (just not successfully with
> complex types)?
>
> So is the XML at the end of this a complete services.xml file where the
> WSDL has a line:
>
> and that service has types defined for the input and output?  Or do I need
> to bring more of the WSDL into it?
>

generate the code to your wsdl with the wsdl2java tool. with -ss -sd
parameters.
you will see a sample services.xml file under resource folder.

thanks,
Amila.

>
>
> Thanks,
>
> -Chris
>
>
> --- services.xml? ---
> 
>   
> 
> 
>  
>true
>  
> 
>
>


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


Newbie needs help/resources crafting AXIS2 services.xml

2009-12-07 Thread c-tech-aaxis
Good morning,

It appears my lack of being immersed in AXIS2 means nothing works quite
how I expect it to.  From a recent email on a different topic it sounds
like I need to set useOriginalwsdl in a services.xml file in my META-INF
directory for AXIS2 (1.3) to actually use the WSDL I was given.

Or perhaps part of the problem is that the WSDL is in META-INF/wsdl/ and
isn't where AXIS2 expects it to be?

Anyways, MyEclipse never generated a services.xml file.  In fact I'm just
deploying a WAR (what's an AAR?) which seems to be working but may be
confusing matters, what with combining JAX-WS and AXIS2.

The couple of brief examples of services.xml files I've found look to
recreate the basic definitions in the WSDL file, so I'm here in part to
ask for any good references to hand-crafting services.xml files -
primarily about what I need to include so the whole thing still works. 
Or... with my setup will it even try to read the services.xml file since
the basic web services have worked so far (just not successfully with
complex types)?

So is the XML at the end of this a complete services.xml file where the
WSDL has a line:

and that service has types defined for the input and output?  Or do I need
to bring more of the WSDL into it?


Thanks,

-Chris


--- services.xml? ---

   


  
true
  




[axis-users] Re: Newbie question

2009-08-27 Thread Arvind Narayan
Thanks, strangely enough, the issue was resolved after I enabled the
-b flag in WSDL2C. ( generate backwards compatible code ). Although
why that might be the case still confounds me.

thanks

arvind.

On Wed, Aug 26, 2009 at 11:58 PM, Chinmoy Chakraborty wrote:
> Instead of using ArrayList, use complex type array as return type
>
> e.g instead of using public ArrayList listFunctions(), use public Function[]
> listFunction()
>
> Chinmoy
>
> On Thu, Aug 27, 2009 at 4:12 AM, Arvind Narayan 
> wrote:
>>
>> Hello:
>>
>> I am facing a strange problem where I see SOAP data coming back from
>> the server, but my axis2 client is reading NULLs for all fields in an
>> array_list response.
>>
>> Here are the steps I took:
>>
>> (1) Used the WSDL2C tool in AXIS2C version 1.5 to generate stub
>> classes using adb binding and wv 1.1 ( all other versions fail )
>> (2) Server runs Axis2 inside tomcat.
>> (3) Start a tcpdump to see client/server interaction.
>> (4) Client starts up sends request to server.
>> (5) Server responds with required data. ( its an array_list type ).
>> tcpdump displays the returned data.
>> (6) Client sees 190 items in adb__sizeof_return( response, env );
>> (6) Client uses adb__get_return_at( response, env, i ) to get element
>> at i.
>> (7) Element is not NULL, but all inner members of the element are NULL.
>>
>> what could I be doing wrong? what other details do you need?
>>
>> thanks
>>
>> arvind.
>
>


Re: Newbie question

2009-08-26 Thread Chinmoy Chakraborty
Instead of using ArrayList, use complex type array as return type

e.g instead of using public ArrayList listFunctions(), use public Function[]
listFunction()

Chinmoy

On Thu, Aug 27, 2009 at 4:12 AM, Arvind Narayan wrote:

> Hello:
>
> I am facing a strange problem where I see SOAP data coming back from
> the server, but my axis2 client is reading NULLs for all fields in an
> array_list response.
>
> Here are the steps I took:
>
> (1) Used the WSDL2C tool in AXIS2C version 1.5 to generate stub
> classes using adb binding and wv 1.1 ( all other versions fail )
> (2) Server runs Axis2 inside tomcat.
> (3) Start a tcpdump to see client/server interaction.
> (4) Client starts up sends request to server.
> (5) Server responds with required data. ( its an array_list type ).
> tcpdump displays the returned data.
> (6) Client sees 190 items in adb__sizeof_return( response, env );
> (6) Client uses adb__get_return_at( response, env, i ) to get element
> at i.
> (7) Element is not NULL, but all inner members of the element are NULL.
>
> what could I be doing wrong? what other details do you need?
>
> thanks
>
> arvind.
>


Newbie question

2009-08-26 Thread Arvind Narayan
Hello:

I am facing a strange problem where I see SOAP data coming back from
the server, but my axis2 client is reading NULLs for all fields in an
array_list response.

Here are the steps I took:

(1) Used the WSDL2C tool in AXIS2C version 1.5 to generate stub
classes using adb binding and wv 1.1 ( all other versions fail )
(2) Server runs Axis2 inside tomcat.
(3) Start a tcpdump to see client/server interaction.
(4) Client starts up sends request to server.
(5) Server responds with required data. ( its an array_list type ).
tcpdump displays the returned data.
(6) Client sees 190 items in adb__sizeof_return( response, env );
(6) Client uses adb__get_return_at( response, env, i ) to get element at i.
(7) Element is not NULL, but all inner members of the element are NULL.

what could I be doing wrong? what other details do you need?

thanks

arvind.


RE: Newbie question: how to plug axis2 engine into existing web application running in weblogic

2009-05-06 Thread Caristi, Joe
One way to do it:



1. Add the Axis Servlet to web.xml





  AxisServlet

   org.apache.axis2.transport.http.AxisServlet

  

  1





  AxisServlet

  /services/*







2. Create (or generate) WSDL that describes the service you plan to implement



3. Use the Axis2 wsdltojava tool to create the service skeleton, message 
receiver, and services.xml files.  Here's a reference for the tool:



http://wso2.org/library/tutorials/reference-guide-axis2-code-generation-parameters-part-1



4. Create a service folder structure under WEB-INF



WEB-INF

  Services

ServiceName

  META-INF



6. Add the WSDL and services.xml files to the META-INF folder in the newly 
created folder structure


7. Add the service skeleton and message receiver classes to your project

8. Add code to the service skeleton to make it do what you want

9. Add axis2 jars to the library path of your application.  You will definitely 
need
axis2-kernel.  You might need others.


From: Hu, Mary - ITG [mailto:mary...@jpmorgan.com]
Sent: Wednesday, May 06, 2009 1:28 PM
To: axis-user@ws.apache.org
Subject: Newbie question: how to plug axis2 engine into existing web 
application running in weblogic

Hi,

I have a web application running in weblogic server. Now I get requirement to 
expose the server side as a web service so that some user can skip the GUI part 
and directly interact with this app via web service.

I'm going to use axis2 as engine. I don't see any document about to plug the 
engine into an existing app. Any suggestions would be appreciated.

Thanks,

Mary Hu



This email is confidential and subject to important disclaimers and conditions 
including on offers for the purchase or sale of securities, accuracy and 
completeness of information, viruses, confidentiality, legal privilege, and 
legal entity disclaimers, available at 
http://www.jpmorgan.com/pages/disclosures/email.


STATEMENT OF CONFIDENTIALITY:



The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify WHI Solutions immediately at g...@whisolutions.com,
and destroy all copies of this message and any attachments.


Newbie question: how to plug axis2 engine into existing web application running in weblogic

2009-05-06 Thread Hu, Mary - ITG
Hi,

 

I have a web application running in weblogic server. Now I get
requirement to expose the server side as a web service so that some user
can skip the GUI part and directly interact with this app via web
service. 

 

I'm going to use axis2 as engine. I don't see any document about to plug
the engine into an existing app. Any suggestions would be appreciated.

 

Thanks,

 

Mary Hu  



This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

Re: Please help newbie --- Axis2 webservice calling other webservice

2009-03-02 Thread Asankha C. Perera

Hi Anudeep

I want to know how can i call a webservice from other webservice.
I tried this way.I created 2 webservices (say A and B )with xmlbeans 
databinding.Both are working fine as tested with respective clients.

Now i want to use methods of A from B.
For this i copied A's client stub file and all other related files to B's 
service directory.And one of my methods of B service calls A's stub.Now i 
redployed B service.

Please guide me regarding this topic by providing some links or 
steps to do this.
  
Doesn't Proxy services of Apache Synapse ESB help you in your business 
problem?

http://synapse.apache.org/Synapse_Samples.html#Sample150
http://synapse.apache.org/Synapse_Configuration_Language.html#proxy

cheers
asankha

--
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com






Please help newbie --- Axis2 webservice calling other webservice

2009-03-02 Thread gade anudeep

Hi All,

I want to know how can i call a webservice from other webservice.
I tried this way.I created 2 webservices (say A and B )with xmlbeans 
databinding.Both are working fine as tested with respective clients.

Now i want to use methods of A from B.
For this i copied A's client stub file and all other related files to B's 
service directory.And one of my methods of B service calls A's stub.Now i 
redployed B service.

Please guide me regarding this topic by providing some links or 
steps to do this.

Thanks 
Anudeep

Trying in this way throwing me error ---

java.lang.ExceptionInInitializerError
at ch.elca.auditwebservice.www.SaveToAuditRequestDocument$Factory.newIns
tance(SaveToAuditRequestDocument.java:152)
at ch.elca.auditwebservice.AuditClient.InsertLog(AuditClient.java:43)
at ch.elca.ticketwebservice.TicketDBDAO.validateTicket(TicketDBDAO.java:
234)
at ch.elca.ticketwebservice.TicketService.validateTicket(TicketService.j
ava:108)
at ch.elca.ticketwebservice.TicketWebServiceSkeleton.validateTicket(Tick
etWebServiceSkeleton.java:72)
at ch.elca.ticketwebservice.TicketWebServiceMessageReceiverInOut.invokeB
usinessLogic(TicketWebServiceMessageReceiverInOut.java:69)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusines
sLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe
ssageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
33)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcesso
r.java:857)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pr
ocess(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:15
09)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to l
oad class with name schemaorg_apache_xmlbeans.system.s462402F9FDA0A5C981C319810D
11E52C.TypeSystemHolder. Make sure the generated binary files are on the classpa
th.
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:7
83)
at ch.elca.auditwebservice.www.SaveToAuditRequestDocument.(SaveT
oAuditRequestDocument.java:20)
... 25 more
Caused by: java.lang.ClassNotFoundException: Class Not found : schemaorg_apache_
xmlbeans.system.s462402F9FDA0A5C981C319810D11E52C.TypeSystemHolder
at org.apache.axis2.deployment.DeploymentClassLoader.findClass(Deploymen
tClassLoader.java:86)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:7
69)


  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/



RE: Please help newbie to integrate hibernate with axis2

2009-02-25 Thread gade anudeep

Thanks Zouhdi..I was able to solve this problem with ur info partly.
And Now i am able to integrate hibernate with axis2 successfully
from inside AAR file..


--- On Wed, 25/2/09, Zouhdi Haffar  wrote:

> From: Zouhdi Haffar 
> Subject: RE: Please help newbie to integrate hibernate with axis2
> To: axis-user@ws.apache.org, "Anudeep G" 
> Date: Wednesday, 25 February, 2009, 7:47 AM
> Have a look at the following URL:
> 
> http://wso2.org/blog/dims/1131
> 
> It's an issue with loading property files from within a
> jar/aar.
> 
> 
> Zouhdi El Haffar
> Senior Consultant
> 
> Valtech
> 19111 North Dallas Pkwy 
> Dallas, TX 75287
> USA
> Tel: 972-789-1200
> Fax: 972-789-1340
>  
> www.valtech.us
> 
> This message and any attachments are Valtech property and
> may contain confidential information intended solely for the
> addressees. If you are not the intended recipient of this
> message or if you have received it incomplete or altered,
> please notify the author by replying to this e-mail
> immediately. Any unauthorised use, diffusion or
> dissemination not expressly authorised by Valtech in writing
> is strictly prohibited.
> 
> 
> -Original Message-
> From: Srinath Perera [mailto:hemap...@gmail.com] 
> Sent: Wednesday, February 25, 2009 8:56 AM
> To: Anudeep G
> Cc: axis-user@ws.apache.org
> Subject: Re: Please help newbie to integrate hibernate with
> axis2
> 
> Hi Anudeep;
> 
> I am not involved with the hibernate integration, and have
> not tried
> it myself. So I am fowarding this to the user list.
> Hopefully someone
> will pick it up.
> 
> Thanks
> Srinath
> 
> On Wed, Feb 25, 2009 at 8:51 AM, Anudeep G
>  wrote:
> > Hi
> >
> > Please can you tell me how can i integrate hibernate
> with axis2.I am trying
> > this from 1 and half week..but i am not resolveing
> it... :(
> > I am unable to initiate hibernate session,may be its
> problem of axis2 class
> > loader not finding my mapping file and classes
> >
> > I have all my hibernate code and server skeleton code
> inside aar.
> > I am testing from my axis2 client..but its throwing
> error as session is not
> > initialized as
> > my mapping class is not finding..
> >
> > MyTest.aar
> > --hibernate.cfg.xml
> > --package.classes
> >    ---mappingfile.hbm.xml
> >
> > When i tried keeping my config and mapping files in
> axis2\webinf\lib then
> > its finding files but my mapping class are in aar file
> > then its not again finding this class file...So plese
> help me for this
> > porblem..Or guide me simple way to do this
> >
> > Thanks a lot
> > Anudeep
> > Hoping for Replyy
> 
> 
> 
> -- 
> 
> Srinath Perera:
>Indiana University, Bloomington
>http://www.cs.indiana.edu/~hperera/
>http://srinathsview.blogspot.com/


  Bring your gang together. Do your thing. Find your favourite Yahoo! group 
at http://in.promos.yahoo.com/groups/



RE: Please help newbie to integrate hibernate with axis2

2009-02-25 Thread Zouhdi Haffar
Have a look at the following URL:

http://wso2.org/blog/dims/1131

It's an issue with loading property files from within a jar/aar.


Zouhdi El Haffar
Senior Consultant

Valtech
19111 North Dallas Pkwy 
Dallas, TX 75287
USA
Tel: 972-789-1200
Fax: 972-789-1340
 
www.valtech.us

This message and any attachments are Valtech property and may contain 
confidential information intended solely for the addressees. If you are not the 
intended recipient of this message or if you have received it incomplete or 
altered, please notify the author by replying to this e-mail immediately. Any 
unauthorised use, diffusion or dissemination not expressly authorised by 
Valtech in writing is strictly prohibited.


-Original Message-
From: Srinath Perera [mailto:hemap...@gmail.com] 
Sent: Wednesday, February 25, 2009 8:56 AM
To: Anudeep G
Cc: axis-user@ws.apache.org
Subject: Re: Please help newbie to integrate hibernate with axis2

Hi Anudeep;

I am not involved with the hibernate integration, and have not tried
it myself. So I am fowarding this to the user list. Hopefully someone
will pick it up.

Thanks
Srinath

On Wed, Feb 25, 2009 at 8:51 AM, Anudeep G  wrote:
> Hi
>
> Please can you tell me how can i integrate hibernate with axis2.I am trying
> this from 1 and half week..but i am not resolveing it... :(
> I am unable to initiate hibernate session,may be its problem of axis2 class
> loader not finding my mapping file and classes
>
> I have all my hibernate code and server skeleton code inside aar.
> I am testing from my axis2 client..but its throwing error as session is not
> initialized as
> my mapping class is not finding..
>
> MyTest.aar
> --hibernate.cfg.xml
> --package.classes
>    ---mappingfile.hbm.xml
>
> When i tried keeping my config and mapping files in axis2\webinf\lib then
> its finding files but my mapping class are in aar file
> then its not again finding this class file...So plese help me for this
> porblem..Or guide me simple way to do this
>
> Thanks a lot
> Anudeep
> Hoping for Replyy



-- 

Srinath Perera:
   Indiana University, Bloomington
   http://www.cs.indiana.edu/~hperera/
   http://srinathsview.blogspot.com/


Re: Please help newbie to integrate hibernate with axis2

2009-02-25 Thread Srinath Perera
Hi Anudeep;

I am not involved with the hibernate integration, and have not tried
it myself. So I am fowarding this to the user list. Hopefully someone
will pick it up.

Thanks
Srinath

On Wed, Feb 25, 2009 at 8:51 AM, Anudeep G  wrote:
> Hi
>
> Please can you tell me how can i integrate hibernate with axis2.I am trying
> this from 1 and half week..but i am not resolveing it... :(
> I am unable to initiate hibernate session,may be its problem of axis2 class
> loader not finding my mapping file and classes
>
> I have all my hibernate code and server skeleton code inside aar.
> I am testing from my axis2 client..but its throwing error as session is not
> initialized as
> my mapping class is not finding..
>
> MyTest.aar
> --hibernate.cfg.xml
> --package.classes
>    ---mappingfile.hbm.xml
>
> When i tried keeping my config and mapping files in axis2\webinf\lib then
> its finding files but my mapping class are in aar file
> then its not again finding this class file...So plese help me for this
> porblem..Or guide me simple way to do this
>
> Thanks a lot
> Anudeep
> Hoping for Replyy



-- 

Srinath Perera:
   Indiana University, Bloomington
   http://www.cs.indiana.edu/~hperera/
   http://srinathsview.blogspot.com/


RE: Newbie wsdl2java question...

2008-09-19 Thread McCullough, Ryan
No, you have to setup the keystore to contain the self-signed certificate. If 
you perform a google search you will see examples of how this can be done.

There may be an alternative to using System.setProperty so that you do not need 
to modify the WSDL2Java code. Someone on this list may be able to tell you how, 
or Google is your friend.

Regardless, I don't see how this would fix your Instantiation exception 
reported in the other email.

From: james a. cubeta [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2008 6:28 PM
To: axis-user@ws.apache.org
Subject: Re: Newbie wsdl2java question...

Thanks Ryan - some stupid follow-up question:

First, setup a java keystore. A simple google search should get you going.
Just set up an empty keystore?

Next, put this code in the WSDL2Java main function:

// set the keystore stuff

System.setProperty("javax.net.ssl.trustStore", "keystore_filename");

System.setProperty("javax.net.ssl.keyStorePassword", "keystore_password");
How am I to modify the WSDL2Java utility? I only have a bunch of Axis-related 
JARs.

Thanks,
James





-Ryan



From: james a. cubeta [mailto:[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>]
Sent: Thursday, September 18, 2008 3:10 PM
To: axis-user@ws.apache.org<mailto:axis-user@ws.apache.org>
Subject: Newbie wsdl2java question...



Hello everyone,

I am both new to Axis and new to this mailing list, so I apologize in advance 
if my questions are simple or have been covered...

I am trying to use Axis 1.4 to develop a simple application that will test a 
web service that is deployed on a private network. As a first step, I am trying 
to generate stub code using the WSDL2Java tool.  Because the server is https & 
uses an IP only, my command line resembles this:

java org.apache.axis.wsdl.WSDL2Java --username user --password pass 
https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl

When I run this, I get the following exception:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: 
PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target


Questions:

1. I assume that the reason this is happening is because the server is using a 
self-signed certificate, and the JVM cannot validate it. Is this assumption 
correct?

2. How can I get around this problem? (Note that I do not have administrative 
access to the server, so making changes on that end is probably not possible).

Thanks in advance for any help or references,
James

--
james a. cubeta



--
james a. cubeta


Re: Newbie wsdl2java question...

2008-09-19 Thread james a. cubeta
Well, I actually HAD done that and ran into a different problem. I reverted
back to referring to it via the full URL because I wondered if, by saving
the WSDL locally, I had caused my "different" problem.

Let me give your suggestion another go, and you'll see another post from me
about THAT problem. :)

Thanks,
James


On Fri, Sep 19, 2008 at 8:07 AM, Soyer, Muhammed A. <[EMAIL PROTECTED]>wrote:

>  Can't you just download the WSDL using a browser and use it locally as a
> workaround ?
>
>
>
> *From:* james a. cubeta [mailto:[EMAIL PROTECTED]
> *Sent:* Thursday, September 18, 2008 8:28 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: Newbie wsdl2java question...
>
>
>
> Thanks Ryan - some stupid follow-up question:
>
> First, setup a java keystore. A simple google search should get you going.
>
> Just set up an *empty* keystore?
>
>  Next, put this code in the WSDL2Java main function:
>
> // set the keystore stuff
>
> System.setProperty("javax.net.ssl.trustStore", "keystore_filename");
>
> System.setProperty("javax.net.ssl.keyStorePassword", "keystore_password");
>
>  How am I to modify the WSDL2Java utility? I only have a bunch of
> Axis-related JARs.
>
> Thanks,
> James
>
>
>
>
>
> -Ryan
>
>
>
> *From:* james a. cubeta [mailto:[EMAIL PROTECTED]
> *Sent:* Thursday, September 18, 2008 3:10 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Newbie wsdl2java question...
>
>
>
> Hello everyone,
>
> I am both new to Axis and new to this mailing list, so I apologize in
> advance if my questions are simple or have been covered...
>
> I am trying to use Axis 1.4 to develop a simple application that will test
> a web service that is deployed on a private network. As a first step, I am
> trying to generate stub code using the WSDL2Java tool.  Because the server
> is https & uses an IP only, my command line resembles this:
>
> java org.apache.axis.wsdl.WSDL2Java --username user --password pass
> https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl
>
> When I run this, I get the following exception:
>
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
> 
>
> Questions:
>
> 1. I assume that the reason this is happening is because the server is
> using a self-signed certificate, and the JVM cannot validate it. Is this
> assumption correct?
>
> 2. How can I get around this problem? (Note that I do not have
> administrative access to the server, so making changes on that end is
> probably not possible).
>
> Thanks in advance for any help or references,
> James
>
> --
> james a. cubeta
>
>
>
>
> --
> james a. cubeta
>



-- 
james a. cubeta


Re: {Disarmed} Re: Newbie wsdl2java question...

2008-09-19 Thread SGruverman
I hope it's okay for me to jump in here:

"james a. cubeta" <[EMAIL PROTECTED]> wrote on 09/18/2008 08:28:15 PM:
>> Thanks Ryan - some stupid follow-up question:
>> First, setup a java keystore. A simple google search should get you
going.
> Just set up an empty keystore?

I believe the keystore needs to contain the "trust path" for SSL
certificate being used.
At it's simplest, that is the certificate of the certificate authority that
signed the SSL cert.
(I wish there was a less circuitous way of saying that!). But there may be
one or more intermediate certs, too - I know this is the case for the
GoDaddy commercial certs we use.

> Next, put this code in the WSDL2Java main function:
> // set the keystore stuff
> System.setProperty("javax.net.ssl.trustStore", "keystore_filename");
> System.setProperty("javax.net.ssl.keyStorePassword",
"keystore_password");
> How am I to modify the WSDL2Java utility? I only have a bunch of
> Axis-related JARs.

This goes in the the code that WSDL2Java generated, i.e. your client app.

Hope this helps,
Steve
__
Steve Gruverman, Programmer
IntelliCare, Inc. | A Medco Health Solutions Company



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



RE: Newbie wsdl2java question...

2008-09-19 Thread Soyer, Muhammed A.
Can't you just download the WSDL using a browser and use it locally as a 
workaround ?

From: james a. cubeta [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2008 8:28 PM
To: axis-user@ws.apache.org
Subject: Re: Newbie wsdl2java question...

Thanks Ryan - some stupid follow-up question:

First, setup a java keystore. A simple google search should get you going.
Just set up an empty keystore?

Next, put this code in the WSDL2Java main function:

// set the keystore stuff

System.setProperty("javax.net.ssl.trustStore", "keystore_filename");

System.setProperty("javax.net.ssl.keyStorePassword", "keystore_password");
How am I to modify the WSDL2Java utility? I only have a bunch of Axis-related 
JARs.

Thanks,
James





-Ryan



From: james a. cubeta [mailto:[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>]
Sent: Thursday, September 18, 2008 3:10 PM
To: axis-user@ws.apache.org<mailto:axis-user@ws.apache.org>
Subject: Newbie wsdl2java question...



Hello everyone,

I am both new to Axis and new to this mailing list, so I apologize in advance 
if my questions are simple or have been covered...

I am trying to use Axis 1.4 to develop a simple application that will test a 
web service that is deployed on a private network. As a first step, I am trying 
to generate stub code using the WSDL2Java tool.  Because the server is https & 
uses an IP only, my command line resembles this:

java org.apache.axis.wsdl.WSDL2Java --username user --password pass 
https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl

When I run this, I get the following exception:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: 
PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target


Questions:

1. I assume that the reason this is happening is because the server is using a 
self-signed certificate, and the JVM cannot validate it. Is this assumption 
correct?

2. How can I get around this problem? (Note that I do not have administrative 
access to the server, so making changes on that end is probably not possible).

Thanks in advance for any help or references,
James

--
james a. cubeta



--
james a. cubeta


Re: Newbie wsdl2java question...

2008-09-18 Thread keith chapman
On a side note if you are new to Axis then I recommend that you use Axis2
instead of Axis.

Thanks,
Keith.

On Fri, Sep 19, 2008 at 2:39 AM, james a. cubeta <[EMAIL PROTECTED]>wrote:

> Hello everyone,
>
> I am both new to Axis and new to this mailing list, so I apologize in
> advance if my questions are simple or have been covered...
>
> I am trying to use Axis 1.4 to develop a simple application that will test
> a web service that is deployed on a private network. As a first step, I am
> trying to generate stub code using the WSDL2Java tool.  Because the server
> is https & uses an IP only, my command line resembles this:
>
> java org.apache.axis.wsdl.WSDL2Java --username user --password pass
> https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl
>
> When I run this, I get the following exception:
>
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
> 
>
> Questions:
>
> 1. I assume that the reason this is happening is because the server is
> using a self-signed certificate, and the JVM cannot validate it. Is this
> assumption correct?
>
> 2. How can I get around this problem? (Note that I do not have
> administrative access to the server, so making changes on that end is
> probably not possible).
>
> Thanks in advance for any help or references,
> James
>
> --
> james a. cubeta
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: Newbie wsdl2java question...

2008-09-18 Thread james a. cubeta
Thanks Ryan - some stupid follow-up question:

> First, setup a java keystore. A simple google search should get you going.
>
Just set up an *empty* keystore?

> Next, put this code in the WSDL2Java main function:
>
> // set the keystore stuff
>
> System.setProperty("javax.net.ssl.trustStore", "keystore_filename");
>
> System.setProperty("javax.net.ssl.keyStorePassword", "keystore_password");
>
How am I to modify the WSDL2Java utility? I only have a bunch of
Axis-related JARs.

Thanks,
James



>
>
> -Ryan
>
>
>
> *From:* james a. cubeta [mailto:[EMAIL PROTECTED]
> *Sent:* Thursday, September 18, 2008 3:10 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Newbie wsdl2java question...
>
>
>
> Hello everyone,
>
> I am both new to Axis and new to this mailing list, so I apologize in
> advance if my questions are simple or have been covered...
>
> I am trying to use Axis 1.4 to develop a simple application that will test
> a web service that is deployed on a private network. As a first step, I am
> trying to generate stub code using the WSDL2Java tool.  Because the server
> is https & uses an IP only, my command line resembles this:
>
> java org.apache.axis.wsdl.WSDL2Java --username user --password pass
> https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl
>
> When I run this, I get the following exception:
>
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
> 
>
> Questions:
>
> 1. I assume that the reason this is happening is because the server is
> using a self-signed certificate, and the JVM cannot validate it. Is this
> assumption correct?
>
> 2. How can I get around this problem? (Note that I do not have
> administrative access to the server, so making changes on that end is
> probably not possible).
>
> Thanks in advance for any help or references,
> James
>
> --
> james a. cubeta
>



-- 
james a. cubeta


RE: Newbie wsdl2java question...

2008-09-18 Thread McCullough, Ryan
First, setup a java keystore. A simple google search should get you going.

Next, put this code in the WSDL2Java main function:
// set the keystore stuff
System.setProperty("javax.net.ssl.trustStore", "keystore_filename");
System.setProperty("javax.net.ssl.keyStorePassword", "keystore_password");

-Ryan

From: james a. cubeta [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2008 3:10 PM
To: axis-user@ws.apache.org
Subject: Newbie wsdl2java question...

Hello everyone,

I am both new to Axis and new to this mailing list, so I apologize in advance 
if my questions are simple or have been covered...

I am trying to use Axis 1.4 to develop a simple application that will test a 
web service that is deployed on a private network. As a first step, I am trying 
to generate stub code using the WSDL2Java tool.  Because the server is https & 
uses an IP only, my command line resembles this:

java org.apache.axis.wsdl.WSDL2Java --username user --password pass 
https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl

When I run this, I get the following exception:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: 
PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target


Questions:

1. I assume that the reason this is happening is because the server is using a 
self-signed certificate, and the JVM cannot validate it. Is this assumption 
correct?

2. How can I get around this problem? (Note that I do not have administrative 
access to the server, so making changes on that end is probably not possible).

Thanks in advance for any help or references,
James

--
james a. cubeta


Newbie wsdl2java question...

2008-09-18 Thread james a. cubeta
Hello everyone,

I am both new to Axis and new to this mailing list, so I apologize in
advance if my questions are simple or have been covered...

I am trying to use Axis 1.4 to develop a simple application that will test a
web service that is deployed on a private network. As a first step, I am
trying to generate stub code using the WSDL2Java tool.  Because the server
is https & uses an IP only, my command line resembles this:

java org.apache.axis.wsdl.WSDL2Java --username user --password pass
https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl

When I run this, I get the following exception:

javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target


Questions:

1. I assume that the reason this is happening is because the server is using
a self-signed certificate, and the JVM cannot validate it. Is this
assumption correct?

2. How can I get around this problem? (Note that I do not have
administrative access to the server, so making changes on that end is
probably not possible).

Thanks in advance for any help or references,
James

-- 
james a. cubeta


Re: Newbie

2008-07-27 Thread Amila Suriarachchi
On Mon, Jul 7, 2008 at 7:59 PM, pierre posset <[EMAIL PROTECTED]> wrote:

>  Hello,
>
>I need to translate this XML in a java classe:
>
> 
> 
> 
>   
> username
>  Type="wsse:PasswordText">password
>   
> 
> 
> 
> http://server/service";>
> 
> Advertiser Name
> Advertiser Address
> 
> 
> 
> 
>
> and I don't find a document which explain me how to do.
>
> I have tried to use AXIOM but of course it doesn't work because I don't
> really know what I am doing.
>


I think you need to go for either a code first (POJO) or contract first
(start with a wsdl) approach which  automatically do you the databinding.

Please see the Quick start guide
http://ws.apache.org/axis2/1_4/quickstartguide.html#clientadb

thanks,
Amila.

>
>
> I really need help.
>
> Thank you very much.
>
> Best Regards.
>
> --
> Discutez gratuitement avec vos amis en vidéo ! Téléchargez Messenger,
> c'est gratuit ! 
>



-- 
Amila Suriarachchi,
WSO2 Inc.


Re: Newbie

2008-07-25 Thread Eran Chinthaka
This is an interesting question.

What do you mean, when you say "I need to translate this XML in a java
classe".

Also if you don't know what you are doing, how do *we* know what you should
do ;) ?

On Mon, Jul 7, 2008 at 7:29 AM, pierre posset <[EMAIL PROTECTED]> wrote:

>  Hello,
>
>I need to translate this XML in a java classe:
>
> 
> 
> 
>   
> username
>  Type="wsse:PasswordText">password
>   
> 
> 
> 
> http://server/service";>
> 
> Advertiser Name
> Advertiser Address
> 
> 
> 
> 
>
> and I don't find a document which explain me how to do.
>
> I have tried to use AXIOM but of course it doesn't work because I don't
> really know what I am doing.
>
> I really need help.
>
> Thank you very much.
>
> Best Regards.
>
> --
> Discutez gratuitement avec vos amis en vidéo ! Téléchargez Messenger,
> c'est gratuit ! 
>



-- 
With Mettha,
Eran Chinthaka


Health is the greatest gift; contentment is the greatest wealth; trusting is
the best relationship; nirvana is the highest joy. - Dhammapada


RE: FW: Newbie Basics: Security Policy

2008-07-16 Thread Roxanne Yee
Thanks nandana! I believed that fixed it XD! The world makes sense now!
 
=>RY



From: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED]
Sent: Tue 7/15/2008 5:07 PM
To: axis-user@ws.apache.org
Subject: Re: FW: Newbie Basics: Security Policy




Could it been that the wss4j jars are conflicting? Because the axis2 
library contains both the 1.5.3 version and the 1.5.4 version?



Yes, you must only have the WSS4J jar relevant to Rampart version you are 
using. As I said earlier, if you have a fresh Axis2 distribution , what you 
need to to is , copy the dependencies jars  in relevant the Rampart 
distribution to your  Axis2 library. 
 
 

CALLBACK HANDLER:



Password callback looks oky. 



SERVICES.XML:


   http://ws.apache.org/rampart/policy";>


   

   username



Nope, this used as the private key alias of the service when encryption or 
signatures are involved. 

regards,
nandana

 

-Original Message-
From: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED]

Sent: Tue 7/15/2008 4:39 PM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: Re: FW: Newbie Basics: Security Policy

What is the version of the WSS4J jar you are using ? It seems you are 
using
a older on than 1.5.4. <http://1.5.4./>  You can find all the 
dependencies needed for Rampart
1.4 in the Rampart 1.4 binary distribution under "/rampart-1.4/lib/" 
which
can downloaded form here [1]. Adding the wss4j 1.5.4 jar to your Axis2 
lib
will solve this problem. You can also post your password callback 
handler
class for the server side and the services.xml, so we can verify whether
they are correct.

thanks,
nandana

[1] - http://ws.apache.org/rampart/download/1.4/download.cgi

Just to verify how this policy would work...
> So if I use this policy, I can just tell soapUI to add a User Name 
Token
> with username "alice" and password "bobPW", and I should receive an 
echo
> back (using the service in the samples) in the response? However, 
when I do
> this, for some reason I receive and error. The RAW messages are 
reprinted
> below:
>
>
> REQUEST:
> Host: 192.168.1.247:8080 <http://192.168.1.247:8080/> 
> Content-Length: 803
> User-Agent: Jakarta Commons-HttpClient/3.0.1
> Content-Type: application/soap+xml;charset=UTF-8;action="urn:echo"
>
> http://sample01.policy.samples.rampart.apache.org 
<http://sample01.policy.samples.rampart.apache.org/> " xmlns:soap="
> http://www.w3.org/2003/05/soap-envelope";>
>  
>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-wssecurity-utility-1.0.xsd
> ">
>alice
>http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
> ">bobPW
>  
>  
>  
>  
>  
> 
> ?
>  
>  
> 
>
>
> RESPONSE:
> HTTP/1.1 500 Internal Server Error
> Date: Tue, 15 Jul 2008 18:05:24 GMT
> Transfer-Encoding: chunked
> Connection: close
> Content-Type: application/soap+xml; action="
> http://www.w3.org/2005/08/addressing/soap/fault";charset=UTF-8
> Server: Apache-Coyote/1.1
>
> 
>   http://www.w3.org/2003/05/soap-envelope
> ">
> 
>   
>  
>soapenv:Receiver
>  
>  
> java.lang.NoSuchMethodError:
> 
org.apache.ws.security.message.WSSecHeader.isEmpty(Lorg/w3c/dom/Document;)Z
>  
>  
>   
    > 
>   
>
>
> Thanks.
>
> =>RY
>
> -Original Message-
> From: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED]
> Sent: Mon 7/14/2008 8:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Newbie Basics: Security Policy
>
> Hi Roxane,
>
> This is the policy to be used. Hope you know how to attac

Re: Newbie

2008-07-16 Thread Heshan Suriyaarachchi
Hi,
   You can do like below as well.

String filePath = "my-xml-files/MyXMLFile.xml";
OMElement documentElement = new StAXOMBuilder(filePath).getDocumentElement();



On Wed, Jul 16, 2008 at 3:28 PM, Heshan Suriyaarachchi <
[EMAIL PROTECTED]> wrote:

> Hi  Pierre,
>I do not understand what exactly that  you want to do, but you can
> do a thing like this
>
> String str2 =
> "1.84.87594";
> StAXOMBuilder builder = new StAXOMBuilder(new
> ByteArrayInputStream(str2.getBytes()));
> OMElement om = builder.getDocumentElement();
>
> Then you can do the AXIOM stuff that you want to do with the OMElement.
> Following articles will help you to get an understanding on AXIOM.
>
>
> [1] - http://www.ibm.com/developerworks/webservices/library/ws-java2/
> [2] - http://ws.apache.org/axis2/1_0/OMTutorial.html
> [3] - http://wso2.org/library/2512
>
>
>
> On Mon, Jul 7, 2008 at 7:59 PM, pierre posset <[EMAIL PROTECTED]>
> wrote:
>
>>  Hello,
>>
>>I need to translate this XML in a java classe:
>>
>> 
>> 
>> 
>>   
>> username
>> > Type="wsse:PasswordText">password
>>   
>> 
>> 
>> 
>> http://server/service";>
>> 
>> Advertiser Name
>> Advertiser Address
>> 
>> 
>> 
>> 
>>
>> and I don't find a document which explain me how to do.
>>
>> I have tried to use AXIOM but of course it doesn't work because I don't
>> really know what I am doing.
>>
>> I really need help.
>>
>> Thank you very much.
>>
>> Best Regards.
>>
>> --
>> Discutez gratuitement avec vos amis en vidéo ! Téléchargez Messenger,
>> c'est gratuit ! 
>>
>
>
>
> --
> Regards,
> Heshan Suriyaarachchi
>
> http://heshans.blogspot.com/
>



-- 
Regards,
Heshan Suriyaarachchi

http://heshans.blogspot.com/


Re: Newbie

2008-07-16 Thread Heshan Suriyaarachchi
Hi  Pierre,
   I do not understand what exactly that  you want to do, but you can do
a thing like this

String str2 =
"1.84.87594";
StAXOMBuilder builder = new StAXOMBuilder(new
ByteArrayInputStream(str2.getBytes()));
OMElement om = builder.getDocumentElement();

Then you can do the AXIOM stuff that you want to do with the OMElement.
Following articles will help you to get an understanding on AXIOM.


[1] - http://www.ibm.com/developerworks/webservices/library/ws-java2/
[2] - http://ws.apache.org/axis2/1_0/OMTutorial.html
[3] - http://wso2.org/library/2512


On Mon, Jul 7, 2008 at 7:59 PM, pierre posset <[EMAIL PROTECTED]> wrote:

>  Hello,
>
>I need to translate this XML in a java classe:
>
> 
> 
> 
>   
> username
>  Type="wsse:PasswordText">password
>   
> 
> 
> 
> http://server/service";>
> 
> Advertiser Name
> Advertiser Address
> 
> 
> 
> 
>
> and I don't find a document which explain me how to do.
>
> I have tried to use AXIOM but of course it doesn't work because I don't
> really know what I am doing.
>
> I really need help.
>
> Thank you very much.
>
> Best Regards.
>
> --
> Discutez gratuitement avec vos amis en vidéo ! Téléchargez Messenger,
> c'est gratuit ! 
>



-- 
Regards,
Heshan Suriyaarachchi

http://heshans.blogspot.com/


Re: FW: Newbie Basics: Security Policy

2008-07-15 Thread Nandana Mihindukulasooriya
> Could it been that the wss4j jars are conflicting? Because the axis2
> library contains both the 1.5.3 version and the 1.5.4 version?
>

Yes, you must only have the WSS4J jar relevant to Rampart version you are
using. As I said earlier, if you have a fresh Axis2 distribution , what you
need to to is , copy the dependencies jars  in relevant the Rampart
distribution to your  Axis2 library.



> CALLBACK HANDLER:
>

Password callback looks oky.

SERVICES.XML:
>
>http://ws.apache.org/rampart/policy
> ">
>
> 
> username
>

Nope, this used as the private key alias of the service when encryption or
signatures are involved.

regards,
nandana



> -Original Message-
> From: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED]
> Sent: Tue 7/15/2008 4:39 PM
> To: axis-user@ws.apache.org; [EMAIL PROTECTED]
> Subject: Re: FW: Newbie Basics: Security Policy
>
> What is the version of the WSS4J jar you are using ? It seems you are using
> a older on than 1.5.4. You can find all the dependencies needed for
> Rampart
> 1.4 in the Rampart 1.4 binary distribution under "/rampart-1.4/lib/" which
> can downloaded form here [1]. Adding the wss4j 1.5.4 jar to your Axis2 lib
> will solve this problem. You can also post your password callback handler
> class for the server side and the services.xml, so we can verify whether
> they are correct.
>
> thanks,
> nandana
>
> [1] - http://ws.apache.org/rampart/download/1.4/download.cgi
>
> Just to verify how this policy would work...
> > So if I use this policy, I can just tell soapUI to add a User Name Token
> > with username "alice" and password "bobPW", and I should receive an echo
> > back (using the service in the samples) in the response? However, when I
> do
> > this, for some reason I receive and error. The RAW messages are reprinted
> > below:
> >
> >
> > REQUEST:
> > Host: 192.168.1.247:8080
> > Content-Length: 803
> > User-Agent: Jakarta Commons-HttpClient/3.0.1
> > Content-Type: application/soap+xml;charset=UTF-8;action="urn:echo"
> >
> > http://sample01.policy.samples.rampart.apache.org"; xmlns:soap="
> > http://www.w3.org/2003/05/soap-envelope";>
> >  
> >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-wssecurity-utility-1.0.xsd
> > ">
> >alice
> >http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
> > ">bobPW
> >  
> >  
> >  
> >  
> >  
> > 
> > ?
> >  
> >  
> > 
> >
> >
> > RESPONSE:
> > HTTP/1.1 500 Internal Server Error
> > Date: Tue, 15 Jul 2008 18:05:24 GMT
> > Transfer-Encoding: chunked
> > Connection: close
> > Content-Type: application/soap+xml; action="
> > http://www.w3.org/2005/08/addressing/soap/fault";charset=UTF-8
> > Server: Apache-Coyote/1.1
> >
> > 
> >   http://www.w3.org/2003/05/soap-envelope
> > ">
> > 
> >   
> >  
> >soapenv:Receiver
> >  
> >  
> > java.lang.NoSuchMethodError:
> >
> org.apache.ws.security.message.WSSecHeader.isEmpty(Lorg/w3c/dom/Document;)Z
> >  
> >  
> >   
> > 
> >   
> >
> >
> > Thanks.
> >
> > =>RY
> >
> > -Original Message-
> > From: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED]
> > Sent: Mon 7/14/2008 8:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Newbie Basics: Security Policy
> >
> > Hi Roxane,
> >
> > This is the policy to be used. Hope you know how to attach this policy to
> > services.xml and to a client. Please go through the Rampart policy
> samples
> > and you will be able to see how that is done. If you have further
> > questions,
> > please feel free to throw them in.
> >
> > regards,
> > nandana
> >
> > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> > "
> > xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>
> >
> >  
> >   http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
> >
> >http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient
> > "
> &

RE: FW: Newbie Basics: Security Policy

2008-07-15 Thread Roxanne Yee
Could it been that the wss4j jars are conflicting? Because the axis2 library 
contains both the 1.5.3 version and the 1.5.4 version?
However, I'll post my callback handler and services.xml as well.


CALLBACK HANDLER:
package org.apache.rampart.samples.policy.sample01;

import org.apache.ws.security.WSPasswordCallback;

import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.UnsupportedCallbackException;

import java.io.IOException;

public class PWCBHandler implements CallbackHandler {

public void handle(Callback[] callbacks) throws IOException,
UnsupportedCallbackException {
for (int i = 0; i < callbacks.length; i++) {

//When the server side need to authenticate the user
WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
if (pwcb.getUsage() == WSPasswordCallback.USERNAME_TOKEN_UNKNOWN) {
if(pwcb.getIdentifer().equals("alice") && 
pwcb.getPassword().equals("bobPW")) {
return;
} else {
throw new UnsupportedCallbackException(callbacks[i], "check 
failed");
}
}

//When the client requests for the password to be added in to the 
//UT element
pwcb.setPassword("bobPW");
}
}

}

Thank you!

=>RY


SERVICES.XML:





org.apache.rampart.samples.policy.sample01.SimpleService



 http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>


 http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
   
  http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>



http://ws.apache.org/rampart/policy";>


username


 
org.apache.rampart.samples.policy.sample01.PWCBHandler


  






-Original Message-
From: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED]
Sent: Tue 7/15/2008 4:39 PM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: Re: FW: Newbie Basics: Security Policy
 
What is the version of the WSS4J jar you are using ? It seems you are using
a older on than 1.5.4. You can find all the dependencies needed for Rampart
1.4 in the Rampart 1.4 binary distribution under "/rampart-1.4/lib/" which
can downloaded form here [1]. Adding the wss4j 1.5.4 jar to your Axis2 lib
will solve this problem. You can also post your password callback handler
class for the server side and the services.xml, so we can verify whether
they are correct.

thanks,
nandana

[1] - http://ws.apache.org/rampart/download/1.4/download.cgi

Just to verify how this policy would work...
> So if I use this policy, I can just tell soapUI to add a User Name Token
> with username "alice" and password "bobPW", and I should receive an echo
> back (using the service in the samples) in the response? However, when I do
> this, for some reason I receive and error. The RAW messages are reprinted
> below:
>
>
> REQUEST:
> Host: 192.168.1.247:8080
> Content-Length: 803
> User-Agent: Jakarta Commons-HttpClient/3.0.1
> Content-Type: application/soap+xml;charset=UTF-8;action="urn:echo"
>
> http://sample01.policy.samples.rampart.apache.org"; xmlns:soap="
> http://www.w3.org/2003/05/soap-envelope";>
>  
>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-wssecurity-utility-1.0.xsd
> ">
>alice
>http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
> ">bobPW
>  
>  
>  
>  
>  
> 
> ?
>  
>  
> 
>
>
> RESPONSE:
> HTTP/1.1 500 Internal Server Error
> Date: Tue, 15 Jul 2008 18:05:24 GMT
> Transfer-Encoding: chunked
> Connection: close
> Content-Type: application/soap+xml; action="
> http://www.w3.org/2005/08/addressing/soap/fault";charset=UTF-8
> Server: Apache-Coyote/1.1
>
> 
>   http://www.w3.org/2003/05/soap-envelope
> ">
> 
>   
>  
>soapenv:Receiver
>  
>      
> java.lang.NoSuchMethodError:
> org.apache.ws.security.message.WSSecHeader.isEmpty(Lorg/w3c/dom/Document;)Z
>  
>  
>   
> 
>   
>
>
> Thanks.
>
> =>RY
>
> -Original Messag

Re: FW: Newbie Basics: Security Policy

2008-07-15 Thread Nandana Mihindukulasooriya
What is the version of the WSS4J jar you are using ? It seems you are using
a older on than 1.5.4. You can find all the dependencies needed for Rampart
1.4 in the Rampart 1.4 binary distribution under "/rampart-1.4/lib/" which
can downloaded form here [1]. Adding the wss4j 1.5.4 jar to your Axis2 lib
will solve this problem. You can also post your password callback handler
class for the server side and the services.xml, so we can verify whether
they are correct.

thanks,
nandana

[1] - http://ws.apache.org/rampart/download/1.4/download.cgi

Just to verify how this policy would work...
> So if I use this policy, I can just tell soapUI to add a User Name Token
> with username "alice" and password "bobPW", and I should receive an echo
> back (using the service in the samples) in the response? However, when I do
> this, for some reason I receive and error. The RAW messages are reprinted
> below:
>
>
> REQUEST:
> Host: 192.168.1.247:8080
> Content-Length: 803
> User-Agent: Jakarta Commons-HttpClient/3.0.1
> Content-Type: application/soap+xml;charset=UTF-8;action="urn:echo"
>
> http://sample01.policy.samples.rampart.apache.org"; xmlns:soap="
> http://www.w3.org/2003/05/soap-envelope";>
>  
>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-wssecurity-utility-1.0.xsd
> ">
>alice
>http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
> ">bobPW
>  
>  
>  
>  
>  
> 
> ?
>  
>  
> 
>
>
> RESPONSE:
> HTTP/1.1 500 Internal Server Error
> Date: Tue, 15 Jul 2008 18:05:24 GMT
> Transfer-Encoding: chunked
> Connection: close
> Content-Type: application/soap+xml; action="
> http://www.w3.org/2005/08/addressing/soap/fault";charset=UTF-8
> Server: Apache-Coyote/1.1
>
> 
>   http://www.w3.org/2003/05/soap-envelope
> ">
> 
>   
>  
>soapenv:Receiver
>  
>  
> java.lang.NoSuchMethodError:
> org.apache.ws.security.message.WSSecHeader.isEmpty(Lorg/w3c/dom/Document;)Z
>  
>  
>   
> 
>   
>
>
> Thanks.
>
> =>RY
>
> -Original Message-
> From: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED]
> Sent: Mon 7/14/2008 8:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Newbie Basics: Security Policy
>
> Hi Roxane,
>
> This is the policy to be used. Hope you know how to attach this policy to
> services.xml and to a client. Please go through the Rampart policy samples
> and you will be able to see how that is done. If you have further
> questions,
> please feel free to throw them in.
>
> regards,
> nandana
>
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> "
> xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>
>
>  
>   http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
>
>http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient
> "
> />
>
>
>
>http://ws.apache.org/rampart/policy
> ">
>
>username
>
>
> org.apache.rampart.samples.policy.sample01.PWCBHandler
>
>
>  
>
> 
>
> On Mon, Jul 14, 2008 at 11:53 PM, Roxanne Yee <[EMAIL PROTECTED]> wrote:
>
> > If I simply wanted to implement a web service that used a User Name Token
> > authentication system with a Username and Password in Plaintext (no SSL
> for
> > now, cause I'm a little sketchy on how to actually set that up), what
> would
> > I need to do if using the Policy handler configuration?
> >
> > Thanks.
> >
> > => RY
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Nandana Mihindukulasooriya
WSO2 inc.

http://nandana83.blogspot.com/


FW: Newbie Basics: Security Policy

2008-07-15 Thread Roxanne Yee



-Original Message-
From: Roxanne Yee [mailto:[EMAIL PROTECTED]
Sent: Tue 7/15/2008 8:11 AM
To: [EMAIL PROTECTED]
Subject: RE: Newbie Basics: Security Policy
 
Just to verify how this policy would work...
So if I use this policy, I can just tell soapUI to add a User Name Token with 
username "alice" and password "bobPW", and I should receive an echo back (using 
the service in the samples) in the response? However, when I do this, for some 
reason I receive and error. The RAW messages are reprinted below:


REQUEST:
Host: 192.168.1.247:8080
Content-Length: 803
User-Agent: Jakarta Commons-HttpClient/3.0.1
Content-Type: application/soap+xml;charset=UTF-8;action="urn:echo"
 
http://sample01.policy.samples.rampart.apache.org"; 
xmlns:soap="http://www.w3.org/2003/05/soap-envelope";>
  
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-wssecurity-utility-1.0.xsd";>
alice
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText";>bobPW
  
  
  
  
  
 
 ?
  
  



RESPONSE:
HTTP/1.1 500 Internal Server Error
Date: Tue, 15 Jul 2008 18:05:24 GMT
Transfer-Encoding: chunked
Connection: close
Content-Type: application/soap+xml; 
action="http://www.w3.org/2005/08/addressing/soap/fault";charset=UTF-8
Server: Apache-Coyote/1.1


   http://www.w3.org/2003/05/soap-envelope";>
 
   
  
soapenv:Receiver
  
  
 java.lang.NoSuchMethodError: 
org.apache.ws.security.message.WSSecHeader.isEmpty(Lorg/w3c/dom/Document;)Z
  
  
   
 
   


Thanks.

=>RY

-Original Message-
From: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED]
Sent: Mon 7/14/2008 8:01 AM
To: [EMAIL PROTECTED]
Subject: Re: Newbie Basics: Security Policy
 
Hi Roxane,

This is the policy to be used. Hope you know how to attach this policy to
services.xml and to a client. Please go through the Rampart policy samples
and you will be able to see how that is done. If you have further questions,
please feel free to throw them in.

regards,
nandana

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>

  
   http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>

http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient";
/>



http://ws.apache.org/rampart/policy";>

username

org.apache.rampart.samples.policy.sample01.PWCBHandler


  



On Mon, Jul 14, 2008 at 11:53 PM, Roxanne Yee <[EMAIL PROTECTED]> wrote:

> If I simply wanted to implement a web service that used a User Name Token
> authentication system with a Username and Password in Plaintext (no SSL for
> now, cause I'm a little sketchy on how to actually set that up), what would
> I need to do if using the Policy handler configuration?
>
> Thanks.
>
> => RY
>



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



Newbie Question: Rampart Policy Sample 01

2008-07-15 Thread Roxanne Yee
I think I've read this somewhere before, but just to verify...
If you run Rampart Policy Sample 01 as is and if you don't have https, it won't 
work, and will create an "Internal server error"?

Because I am not using SSL; I'm using HTTP and running policy/sample01. 
However, if I uncomment the line



in the services.xml file, a WSDL file is generated. It' be appreciated if 
someone could explain what the uncommented line does. :P


Thanks.

=>RY
<>-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Another Newbie Question: Rampart passwordCallbackClass

2008-07-14 Thread Roxanne Yee
Is the passwordCallbackClass provided in the Rampart samples for the server or 
the client? If it is for both, the what would be the difference? I've read 
http://wso2.org/node/240/print/ and am still confused. 
<>-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Newbie Question: Rampart passwordCallbackClass

2008-07-14 Thread Roxanne Yee
Does anyone know what the  class does in detail? 

For instance, what happens if you return? With regards to a User Name Token, is 
it just given a "username" and returns/sets the "password"? What part 
authenticates the username and password pair?

Any help would be great! I'm new to Java so even general Java knowledge is 
appreciated!


-Original Message-
From: Chau, Hoang [mailto:[EMAIL PROTECTED]
Sent: Mon 7/14/2008 6:49 AM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: RE: WSS4J , Rampart
 
Thanks Jose.  It clarifies my question.



From: José Ferreiro [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2008 9:44 AM
To: axis-user@ws.apache.org
Subject: Re: WSS4J , Rampart


Hello,

Basically, you may use WSS4J with Axis 1.x to implement WS-Security.

Rampart is the WS-Security module in Axis 2. Rampart uses WSS4J.

Hope this helps.

José Ferreiro


On Mon, Jul 14, 2008 at 6:38 PM, Chau, Hoang <[EMAIL PROTECTED]> wrote:


Hi all,
 
I am new to webservice security so could anyone tell me the difference 
between WSS4j and Rampart or point me the link talk about them.
 
Thanks



From: Juan Gabriel Arias [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2008 9:18 AM
To: axis-user@ws.apache.org
Subject: QName is null for...


Hi all,
i'm facing this issue. I try to generate the java files from this wsdl







And the generator throws this exception:

Using AXIS2_HOME:   D:\java\axis2-1.4\
Using JAVA_HOME:C:\Program Files\Java\jre1.6.0_05
Retrieving document at 'OIContentProviderv0.2.wsdl'.
Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: Element QName is null for ErrorResponseMessage!
at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: Element QName is null for ErrorResponseMessage!
at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:534)
at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:260)
... 2 more
Caused by: java.lang.RuntimeException: Element QName is null for 
ErrorResponseMessage!
at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:2829)
at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:2748)
at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2269)
at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2151)
at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmitter.java:1151)
at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:1117)
at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:497)
... 3 more

I found that the problem is the missing "fault" definition.
I i try this, it works:








Why? AFAIK, this is not mandatory... am i wrong?
And it would be nice to get a better error message.

thanks in advance!
Juan







This message and any attachments are intended only for the use of the 
addressee and may contain information that is privileged and confidential. If 
the reader of the message is not the intended recipient or an authorized 
representative of the intended recipient, you are hereby notified that any 
dissemination of this communication is strictly prohibited. If you have 
received this communication in error, notify the sender immediately by return 
email and delete the message and any attachments from your system. 




-- 
José Ferreiro
EPFL Communication Sys

Newbie Question: Rampart 1.4

2008-07-11 Thread Roxanne Yee
Is anyone familiar with all the options that Rampart 1.4 provides? For example, 
what can specifically go between the  tags in the services.xml 
file?

=> RY
<>-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: R: Newbie

2008-07-07 Thread pierre posset

Hello Simone,

   Thank you for your answer it is clearer, do you know if there is a tutorial 
which explain me how to translate this in java?

Best Regards,

Pierre

> Subject: R: Newbie
> Date: Mon, 7 Jul 2008 16:53:45 +0200
> From: [EMAIL PROTECTED]
> To: axis-user@ws.apache.org
> 
> Hi Pierre,
>   you're trying to make an object from a Procedure Invocation.
> In the body you find the name of the method, or of the procedure if you like 
> it better, and the  and  tags represents parameter of the 
> Procedure.
> Axiom allows you to parse in a very easy way a SOAP envelope.
> I don't know what you're trying to do.
> I hope to be helpfull.
> regards
> Simone
> 
> -Messaggio originale-
> Da: pierre posset [mailto:[EMAIL PROTECTED]
> Inviato: lun 07/07/2008 16.29
> A: axis-user@ws.apache.org
> Oggetto: Newbie
> 
> 
> Hello,
> 
>I need to translate this XML in a java classe:
> 
> 
> 
> 
>   
> username
> password
>   
> 
> 
> 
> http://server/service";>
> 
> Advertiser Name
> Advertiser Address
> 
> 
> 
> 
> 
> and I don't find a document which explain me how to do.
> 
> I have tried to use AXIOM but of course it doesn't work because I don't 
> really know what I am doing.
> 
> I really need help.
> 
> Thank you very much.
> 
> Best Regards.
> 
> _
> Mettez Messenger sur votre mobile !
> http://www.messengersurvotremobile.com
> 

_
Découvrez les profils Messenger de vos amis
http://home.services.spaces.live.com/

R: Newbie

2008-07-07 Thread simonemaletta
Hi Pierre,
  you're trying to make an object from a Procedure Invocation.
In the body you find the name of the method, or of the procedure if you like it 
better, and the  and  tags represents parameter of the Procedure.
Axiom allows you to parse in a very easy way a SOAP envelope.
I don't know what you're trying to do.
I hope to be helpfull.
regards 
Simone

-Messaggio originale-
Da: pierre posset [mailto:[EMAIL PROTECTED]
Inviato: lun 07/07/2008 16.29
A: axis-user@ws.apache.org
Oggetto: Newbie
 

Hello,

   I need to translate this XML in a java classe:




  
username
password
  



http://server/service";>

Advertiser Name
Advertiser Address





and I don't find a document which explain me how to do.

I have tried to use AXIOM but of course it doesn't work because I don't really 
know what I am doing.

I really need help.

Thank you very much.

Best Regards.

_
Mettez Messenger sur votre mobile !
http://www.messengersurvotremobile.com

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

Newbie

2008-07-07 Thread pierre posset

Hello,

   I need to translate this XML in a java classe:




  
username
password
  



http://server/service";>

Advertiser Name
Advertiser Address





and I don't find a document which explain me how to do.

I have tried to use AXIOM but of course it doesn't work because I don't really 
know what I am doing.

I really need help.

Thank you very much.

Best Regards.

_
Mettez Messenger sur votre mobile !
http://www.messengersurvotremobile.com

Re: newbie question regarding rampart samples and tcpmon

2008-07-04 Thread Thomas Porschberg
Sorry, for this question. My problem was that
I configured tcpmon in a wrong way (proxy instead of listener). 

Thomas

Am Fri, 4 Jul 2008 07:48:15 +0200
schrieb Thomas Porschberg <[EMAIL PROTECTED]>:

> Hi,
> 
> I'm new to AXIS2 and rampart. 
> However in a first step I got a simple unsecure webservice 
> running with AXIS2-server and a gsoap client.
> In a second step I installed rampart and tried to execute the 
> samples.
> I run sample02 successful (I copied the sample02.aar to
> axis2-1.4/repository/services and run "ant client.02"). 
> Next step was to observe the SOAP-messages exchanged with tcpmon
> (at least I thought so...).
> I started tcpmon listening on port 9080 changed 
> 
>  
> 
> in ../rampart-1.3/samples/basic
> 
> and started the client again.
> 
> Now I get an exception:
> 
> [java] Exception in thread "main" org.apache.axis2.AxisFault:
> Connection reset [java] at
> org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) [java] at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
> 
> In tcpmon I see:
> 
> 
>   POST /axis2/services/sample02 HTTP/1.1
> 
> java.net.MalformedURLException: no protocol: axis2/services/sample02
> at java.net.URL.(URL.java:567)
> at java.net.URL.(URL.java:464)
> at java.net.URL.(URL.java:413)
> at
> org.apache.ws.commons.tcpmon.Connection.run(Connection.java:276)
> 
> 
> 
> How can this be solved ?
> 
> Regards,
> Thomas
> 
> 


-- 
Otto Software Partner GmbH 
Tel.: 0351/49723 158 Email: [EMAIL PROTECTED]
01067 Dresden, Freiberger Str.35 - AG Dresden, HRB 2475 
Geschäftsführer: Burkhard Arrenberg, Heinz A. Bade, Jens Gruhl


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



newbie question regarding rampart samples and tcpmon

2008-07-03 Thread Thomas Porschberg
Hi,

I'm new to AXIS2 and rampart. 
However in a first step I got a simple unsecure webservice 
running with AXIS2-server and a gsoap client.
In a second step I installed rampart and tried to execute the 
samples.
I run sample02 successful (I copied the sample02.aar to
axis2-1.4/repository/services and run "ant client.02"). 
Next step was to observe the SOAP-messages exchanged with tcpmon
(at least I thought so...).
I started tcpmon listening on port 9080 changed 

 

in ../rampart-1.3/samples/basic

and started the client again.

Now I get an exception:

[java] Exception in thread "main" org.apache.axis2.AxisFault:
Connection reset [java] at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) [java] at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)

In tcpmon I see:


  POST /axis2/services/sample02 HTTP/1.1

java.net.MalformedURLException: no protocol: axis2/services/sample02
at java.net.URL.(URL.java:567)
at java.net.URL.(URL.java:464)
at java.net.URL.(URL.java:413)
at
org.apache.ws.commons.tcpmon.Connection.run(Connection.java:276)



How can this be solved ?

Regards,
Thomas


-- 
Otto Software Partner GmbH 
Tel.: 0351/49723 158 Email: [EMAIL PROTECTED]
01067 Dresden, Freiberger Str.35 - AG Dresden, HRB 2475 
Geschäftsführer: Burkhard Arrenberg, Heinz A. Bade, Jens Gruhl


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



Newbie question on mapping and java.util.HashSet

2008-03-19 Thread PURBON
Hi! First of all I'm a newbie in webservice world so I'll try to speak 
correctly but I could say something wrong.
I'm trying to develop a WS interface to a well known API (an internal server). 
This API has objects with collections as java.util.HashSet. As far as I know 
JAX-RPC understand this type, but I didn't know how to tell Axis not to use 
ArrayList to map this collection properties.
I'll suppose I must work with typeMapping or something related in WSDD files, 
but I can not find any information in axis web site or in this mailing list. 
Could any one help me?
Can any one of you point me to a tutorial on building custom serialize or 
desserialize classes? Where they must be deployed (after compiled)in Tomcat? 

 
Thanks,

PD: Sorry for my English, I know my level is no so high.


Pere Urbón-Bayes <[EMAIL PROTECTED]>
I+D Engineer
Tel: +34932279206
Hospital Clínic i Provincial de Barcelona (htpp://www.csc.es)
Barcelona - Catalonia
Spain

 


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



Re: newbie: is Axis binary also required with .war

2008-03-14 Thread Upul Godage
Axis2 war file contains a subset of Axis2 full distribution, just the Axis2
engine ready to deploy in a Servlet container. You do not need the full
distribution for using the war file.  The WAR file cannot be used
standalone. You need a Servlet container.

Axis2 full distribution contains a standalone server which can be used for
testing etc. which can be run from the bin scripts. This way you are not
using a separate Tomcat distribution.

When you run new AxisServer().deployService(SimplePojo.class.getName()); you
are creating a new Axis2 server instance and deploying the class as a
service. This is separate from the above scenarios. You are programmatically
creating an Axis2 server. You don't need the above two servers running in
that case.

Add Axis2 lib directory jars to your classpath to compile and run your
class. They are available inside the war file also.

You can check out this guide. http://ws.apache.org/axis2/1_3/pojoguide.html.

Upul

On Fri, Mar 14, 2008 at 12:16 PM, learn_n_share <
[EMAIL PROTECTED]> wrote:

>
> hi
> i m new to axis. I ve downloaded .war axis2, pasted in my tomcat home
> folder, and found that axis dir got generated automatically.
>
> 1)
> while going through the axis installation tut, i felt as if it is
> necassary
> to have the binary distribution of the same as well.
> --> am i correct?
>
> 2)
> i have created the AXIS2_HOME variable to point to the directory of axis2
> binary distribution which i placed in "C:\axis2" and not to the one
> contained in the "webapps" directory of "tomcat" as i thought that there
> is
> no "bin" named folder inside the latter directory.
> -->  is this correct?
>
> 3) have also created the following environment variables:
>
> path = %path%;c:\axis2\bin
>
> AXIS2_HOME = C:\axis2
> AXIS2_LIB = %AXIS2_HOME%\lib
> AXIS2CLASSPATH =
> %AXIS2_LIB%\axis2.jar;%AXIS2_LIB%\commons-discovery.jar
> ;%AXIS2_LIB%\commons-logging-1.1.jar
> ;%AXIS2_LIB%\jaxrpc.jar;%AXIS2_LIB%\saaj.jar;%AXIS2_LIB%\log4j-1.2.14.jar
> ;%AXIS2_LIB%\xml-apis-1.3.03.jar;%AXIS2_LIB%\xercesImpl-2.8.1.jar
>
> i created a folder named pojo inside the "C:\Program Files\Apache Software
> Foundation\Tomcat 6.0\webapps\axis2\WEB-INF" , i.e., the container dir for
> tomcat webapps
> inside pojo, there is a simple java file named "SimplePojo.java" as simple
> as:
>
> "import org.apache.axis2.AxisFault;
> import org.apache.axis2.engine.AxisServer;
>
> public class SimplePojo {
>
>public int addnumbers(int x, int y){
>return x+y;
>}
>
>public static void main(String[] args)throws AxisFault {
>new AxisServer().deployService(SimplePojo.class.getName());
>}
> }"
>
> on compiling i get the error:
> SimplePojo.java:1: package org.apache.axis2 does not exist
> (amongst three related errors)
>
> --> what could be the possible solution?
>
>
> --
> View this message in context:
> http://www.nabble.com/newbie%3A-is-Axis-binary-also-required-with-.war-tp16045279p16045279.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


newbie: is Axis binary also required with .war

2008-03-13 Thread learn_n_share

hi
i m new to axis. I ve downloaded .war axis2, pasted in my tomcat home
folder, and found that axis dir got generated automatically.

1)
while going through the axis installation tut, i felt as if it is necassary
to have the binary distribution of the same as well.
--> am i correct?

2)
i have created the AXIS2_HOME variable to point to the directory of axis2
binary distribution which i placed in "C:\axis2" and not to the one
contained in the "webapps" directory of "tomcat" as i thought that there is
no "bin" named folder inside the latter directory.
-->  is this correct?

3) have also created the following environment variables:

path = %path%;c:\axis2\bin

AXIS2_HOME = C:\axis2
AXIS2_LIB = %AXIS2_HOME%\lib
AXIS2CLASSPATH =
%AXIS2_LIB%\axis2.jar;%AXIS2_LIB%\commons-discovery.jar;%AXIS2_LIB%\commons-logging-1.1.jar;%AXIS2_LIB%\jaxrpc.jar;%AXIS2_LIB%\saaj.jar;%AXIS2_LIB%\log4j-1.2.14.jar;%AXIS2_LIB%\xml-apis-1.3.03.jar;%AXIS2_LIB%\xercesImpl-2.8.1.jar

i created a folder named pojo inside the "C:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\axis2\WEB-INF" , i.e., the container dir for
tomcat webapps
inside pojo, there is a simple java file named "SimplePojo.java" as simple
as:

"import org.apache.axis2.AxisFault;
import org.apache.axis2.engine.AxisServer;

public class SimplePojo {

public int addnumbers(int x, int y){
return x+y;
}

public static void main(String[] args)throws AxisFault {
new AxisServer().deployService(SimplePojo.class.getName());
}
}"

on compiling i get the error:
SimplePojo.java:1: package org.apache.axis2 does not exist
(amongst three related errors)

--> what could be the possible solution?


-- 
View this message in context: 
http://www.nabble.com/newbie%3A-is-Axis-binary-also-required-with-.war-tp16045279p16045279.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Newbie Question on axis2

2008-03-13 Thread Deepal Jayasinghe

hi Chino

Please have a look at the following article

http://www.developer.com/java/other/article.php/3726461

Thank you!
Deepal


Hi All,

Hope I'm sending this to the right mailing list. :)

I'm new to web services and currently I'm studying and using axis2.  I 
have made a very simple
web service  (i.e. int add(int x, int y) ) that returns an int.  I 
started from POJO to create a

create a service archive.

Now, I want to create a web service that returns two parameters to
the client:

1.  Response-Code - String
2.  Reply-Message - String

The SOAP client which will be written in PHP, needs to check the 
response code

first, before looking at the Reply-Message.

My problem is If I will start from POJO, how should I defined the method
for this service?  Or, what's the proper way of creating the service 
that returns

multiple parameters?  Any docs, tutorials, links will do...

Thank in advance! 


Chino





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



Re: Newbie Question on axis2

2008-03-13 Thread Hardev Sian
One way is to create the response as an XML document and return that, this 
allows you to return multiple values.
  

Chino Aureus <[EMAIL PROTECTED]> wrote:
  
Hi All,

Hope I'm sending this to the right mailing list. :)

I'm new to web services and currently I'm studying and using axis2.  I have 
made a very simple
web service  (i.e. int add(int x, int y) ) that returns an int.  I started from 
POJO to create a 
create a service archive.

Now, I want to create a web service that returns two parameters to
the client:

1.  Response-Code - String
2.  Reply-Message - String

The SOAP client which will be written in PHP, needs to check the response code
first, before looking at the Reply-Message.

My problem is If I will start from POJO, how should I defined the method
for this service?  Or, what's the proper way of creating the service that 
returns
multiple parameters?  Any docs, tutorials, links will do...

Thank in advance!  

Chino



   
-
Get the name you always wanted with the new y7mail email address.

Newbie Question on axis2

2008-03-13 Thread Chino Aureus
Hi All,

Hope I'm sending this to the right mailing list. :)

I'm new to web services and currently I'm studying and using axis2.  I have
made a very simple
web service  (i.e. int add(int x, int y) ) that returns an int.  I started
from POJO to create a
create a service archive.

Now, I want to create a web service that returns two parameters to
the client:

1.  Response-Code - String
2.  Reply-Message - String

The SOAP client which will be written in PHP, needs to check the response
code
first, before looking at the Reply-Message.

My problem is If I will start from POJO, how should I defined the method
for this service?  Or, what's the proper way of creating the service that
returns
multiple parameters?  Any docs, tutorials, links will do...

Thank in advance!

Chino


RE: newbie confusion

2008-02-28 Thread Inman, Peter
Thanks very much for your help, which makes perfect sense.

 

In the WSDL I'm working with, I have soap faults defined like

 



   



 

When I create and return one of those objects, it gets turned into the
correct exception and works beautifully. I do that by a "throw
CERSErrorErr" statement in my skeleton code and I don't have to do
anything else apart from set the properties. The 

 

If I try and move the validation into the handler which is the best
place for it, I'm not able to do a "throw CERSErrorErr" as the handler
will only throw AxisFaults and the CERSErrorErr class extends
java.lang.Exception. 

 

I realise I'm missing something pretty obvious - but can anyone suggest
what I need to do look at, to be able to throw my correct exceptions.

 

Thanks

 

 

 

 

 

 



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: 28 February 2008 11:35
To: axis-user@ws.apache.org
Subject: Re: newbie confusion

 

 

On Thu, Feb 28, 2008 at 5:19 AM, Inman, Peter <[EMAIL PROTECTED]>
wrote:

I'm new to AXIS2, and I have to develop a web service which someone else
has supplied the WSDL, We also have to host a couple of operations as
well as make calls to them.

 

I have used WSDL2Java to generate the client code and service skeleton
and I have also deployed a service and put some debugging code in the
skeleton to verify that the methods can be called. SO far, all seems to
work ok.

 

With one particular operation, I have to validate the incoming SOAP
message against the schema using XMLBeand and either return a
"CERSErrorDocument" or a SOAPFaultException with details of the
exception in it. This is where my confusion starts.

 

I thought I would build a module (handler) and validate the SOAP message
here. This works fine and seems quite a tidy way of doing things.

 

The problem I'm having is - how do exceptions get out of the handler and
back to the client? Do I just throw them out of the handler?

you can throw AxisFaults from handlers. set the AxisFault details
element correctly. this will added to the soap fault details element. 

 

Also - if the SOAP message is valid, I return an acknowledge
document, if it's invalid I return a SOAPFaultException - do I return
those out of the handler too?


No you can do this at the Skelton and send the throw an Exception. Here
set the exception message element correctly.

 

Where is the best place to handle this kind of thing? The
module(handler) seems quite tidy, but I'm obviously missing the bit of
information which tells me how exceptions are handled from modules.

 

Or - should I modify the "MyServiceSkeleton.java" class and put
the validation and logic in that.

 

Any advice would be appreciated.

 

Thanks,

Pete

 

 




-- 
Amila Suriarachchi,
WSO2 Inc. 



Re: newbie confusion

2008-02-28 Thread Amila Suriarachchi
On Thu, Feb 28, 2008 at 5:19 AM, Inman, Peter <[EMAIL PROTECTED]> wrote:

>  I'm new to AXIS2, and I have to develop a web service which someone else
> has supplied the WSDL, We also have to host a couple of operations as well
> as make calls to them.
>
>
>
> I have used WSDL2Java to generate the client code and service skeleton and
> I have also deployed a service and put some debugging code in the skeleton
> to verify that the methods can be called. SO far, all seems to work ok.
>
>
>
> With one particular operation, I have to validate the incoming SOAP
> message against the schema using XMLBeand and either return a
> "CERSErrorDocument" or a SOAPFaultException with details of the exception in
> it. This is where my confusion starts.
>
>
>
> I thought I would build a module (handler) and validate the SOAP message
> here. This works fine and seems quite a tidy way of doing things.
>
>
>
> The problem I'm having is – how do exceptions get out of the handler and
> back to the client? Do I just throw them out of the handler?
>
you can throw AxisFaults from handlers. set the AxisFault details element
correctly. this will added to the soap fault details element.

>
>
> Also – if the SOAP message is valid, I return an acknowledge document, if
> it's invalid I return a SOAPFaultException – do I return those out of the
> handler too?
>

No you can do this at the Skelton and send the throw an Exception. Here set
the exception message element correctly.

>
>
> Where is the best place to handle this kind of thing? The module(handler)
> seems quite tidy, but I'm obviously missing the bit of information which
> tells me how exceptions are handled from modules.
>
>
>
> Or – should I modify the "MyServiceSkeleton.java" class and put the
> validation and logic in that.
>
>
>
> Any advice would be appreciated.
>
>
>
> Thanks,
>
> Pete
>
>
>
>
>



-- 
Amila Suriarachchi,
WSO2 Inc.


newbie confusion

2008-02-27 Thread Inman, Peter
I'm new to AXIS2, and I have to develop a web service which someone else
has supplied the WSDL, We also have to host a couple of operations as
well as make calls to them.

 

I have used WSDL2Java to generate the client code and service skeleton
and I have also deployed a service and put some debugging code in the
skeleton to verify that the methods can be called. SO far, all seems to
work ok.

 

With one particular operation, I have to validate the incoming SOAP
message against the schema using XMLBeand and either return a
"CERSErrorDocument" or a SOAPFaultException with details of the
exception in it. This is where my confusion starts.

 

I thought I would build a module (handler) and validate the SOAP message
here. This works fine and seems quite a tidy way of doing things.

 

The problem I'm having is - how do exceptions get out of the handler and
back to the client? Do I just throw them out of the handler?

 

Also - if the SOAP message is valid, I return an acknowledge document,
if it's invalid I return a SOAPFaultException - do I return those out of
the handler too?

 

Where is the best place to handle this kind of thing? The
module(handler) seems quite tidy, but I'm obviously missing the bit of
information which tells me how exceptions are handled from modules.

 

Or - should I modify the "MyServiceSkeleton.java" class and put the
validation and logic in that.

 

Any advice would be appreciated.

 

Thanks,

Pete

 

 



Re: newbie question

2008-02-18 Thread Ted Roeloffzen
I've already done that, but it still doesn't work.

Is there a document or something with best practices??

Ted


2008/2/19, Upul Godage <[EMAIL PROTECTED]>:
>
> You can try setting the SOAPAction header to the SOAPAction value given in
> the WSDL binding, so that the service can identify the operation.
>
> Upul
>
>
> On Feb 18, 2008 6:46 PM, Ted Roeloffzen <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
> >
> > I'm new to Axis and ran into a little trouble. I have to make a
> > webservice that uses a WSDL that is supplied by a third party, so i can't
> > change the WSDL.
> > Because i'm need to work with the XML, i've chosen to use the Message
> > style for Axis.
> >
> > Now this is my problem. When i send an xml-request to the service it
> > uses the name of the tag in the body as the operation-name instead of
> > checking the WSDL for the appropiate operation.
> > As a result to this I get an exception when sending the request:
> > Couldn't find the appropriate operation for XML QName 
> >
> > Does anyone know what i'm doing wrong?
> >
> > Thanks,
> >
> > Ted
> >
>
>


Re: newbie question

2008-02-18 Thread Upul Godage
You can try setting the SOAPAction header to the SOAPAction value given in
the WSDL binding, so that the service can identify the operation.

Upul


On Feb 18, 2008 6:46 PM, Ted Roeloffzen <[EMAIL PROTECTED]> wrote:

> Hi All,
>
> I'm new to Axis and ran into a little trouble. I have to make a webservice
> that uses a WSDL that is supplied by a third party, so i can't change the
> WSDL.
> Because i'm need to work with the XML, i've chosen to use the Message
> style for Axis.
>
> Now this is my problem. When i send an xml-request to the service it uses
> the name of the tag in the body as the operation-name instead of checking
> the WSDL for the appropiate operation.
> As a result to this I get an exception when sending the request: Couldn't
> find the appropriate operation for XML QName 
>
> Does anyone know what i'm doing wrong?
>
> Thanks,
>
> Ted
>


newbie question

2008-02-18 Thread Ted Roeloffzen
Hi All,

I'm new to Axis and ran into a little trouble. I have to make a webservice
that uses a WSDL that is supplied by a third party, so i can't change the
WSDL.
Because i'm need to work with the XML, i've chosen to use the Message style
for Axis.

Now this is my problem. When i send an xml-request to the service it uses
the name of the tag in the body as the operation-name instead of checking
the WSDL for the appropiate operation.
As a result to this I get an exception when sending the request: Couldn't
find the appropriate operation for XML QName 

Does anyone know what i'm doing wrong?

Thanks,

Ted


Re: newbie question

2008-02-17 Thread Anne Thomas Manes
Do you have a WSDL that goes with the service? You can use WSDL2java
to generate a client proxy for you. That will make things easier for
you.

I'm not sure you can use the DII call interface to invoke this
service. The service is a document/literal service, and the call
interface is designed to work with RPC services. The call interface
automatically generates unqualified accessor elements for the
parameter types (i.e., the username and password elements). But your
service requires that these elements be qualified. I have never
figured out how to get the call.addParameter method to product a
qualified element.

Anne

On Feb 13, 2008 9:28 AM, Reinout van Schouwen <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I'm new to this list so if my question is anwered elsewhere and I didn't
> find it in the archive, my apologies.
>
> I have to make some simple calls to a webservice hosted on an IIS
> server. A valid "Login" call should look like this, according to the
> spec:
>
> POST /webservices/ExternalRedirectionService.asmx HTTP/1.1
> Host: gww-ob.nl
> Content-Type: text/xml; charset=utf-8
> Content-Length: length
> SOAPAction: "http://[someurl.tld]/WebServices/Login";
>
> 
> http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>   
> http://[someurl.tld]/WebServices/";>
>   string
>   string
> 
>   
> 
>
> I wrote this code after studying the tutorial (the localhost: is for
> tcpmon, which forwards to the actual server on port 80):
>
>import org.apache.axis.client.Call;
>import org.apache.axis.client.Service;
>import javax.xml.namespace.QName;
>
>public class TestClient {
>   public static void main(String [] args) {
>   try {
>   String endpoint =
>
> "http://localhost:/webservices/ExternalRedirectionService.asmx";;
>
>  Service  service = new Service();
>  Call call= (Call) service.createCall();
>  call.setTargetEndpointAddress( new java.net.URL(endpoint) );
>  call.setSOAPActionURI("http://[myurl.tld]/WebServices/Login";);
>
>  call.addParameter("username", 
> org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
>  call.addParameter("password", 
> org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
>
>  call.setReturnType(org.apache.axis.Constants.XSD_STRING);
>
>  String ret = (String) call.invoke(new 
> QName("http://[myurl.tld]/WebServices/";, "Login"), new Object[] { 
> "[username]", "[password]" } );
>
>  System.out.println("Got '" + ret + "'");
>  } catch (Exception e) {
>  System.err.println(e.toString());
>  }
> }
>   }
>
> This yields the following call:
>
> POST /webservices/ExternalRedirectionService.asmx HTTP/1.0
> Content-Type: text/xml; charset=utf-8
> Accept: application/soap+xml, application/dime, multipart/related, text/*
> User-Agent: Axis/1.2alpha
> Host: [someurl.tld]:
> Cache-Control: no-cache
> Pragma: no-cache
> SOAPAction: "http://www.[someurl.tld]/WebServices/Login";
> Content-Length: 520
>
> 
> http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  
>soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xmlns:ns1="http://www.[someurl.tld]/WebServices/";>
>[username]
>[password]
>   
>  
> 
>
> (I know I'm using an old version of Axis, that's a constraint I have to work 
> with.)
>
> The webserver then replies with:
>
> System.Web.Services.Protocols.SoapException: Server was unable to process 
> request. ---> Csla.DataPortalException: DataPortal.Fetch failed ---> 
> Csla.Server.CallMethodException: DataPortal_Fetch method call failed ---> 
> System.Data.SqlClient.SqlException: Procedure 'security_login' expects 
> parameter '@st_username', which was not supplied.
>
> followed by a long stack trace.
>
> My question is, naturally: what am I doing wrong here?
>
> Thanks for any insights.
>
> regards,
>
> --
> Reinout van Schouwen
> http://vanschouwen.info/
>
>
> -
> 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]



newbie question

2008-02-13 Thread Reinout van Schouwen
Hello all,

I'm new to this list so if my question is anwered elsewhere and I didn't
find it in the archive, my apologies.

I have to make some simple calls to a webservice hosted on an IIS
server. A valid "Login" call should look like this, according to the
spec:

POST /webservices/ExternalRedirectionService.asmx HTTP/1.1
Host: gww-ob.nl
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://[someurl.tld]/WebServices/Login";


http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  
http://[someurl.tld]/WebServices/";>
  string
  string

  


I wrote this code after studying the tutorial (the localhost: is for
tcpmon, which forwards to the actual server on port 80):

   import org.apache.axis.client.Call;
   import org.apache.axis.client.Service;
   import javax.xml.namespace.QName;
   
   public class TestClient {
  public static void main(String [] args) {
  try {
  String endpoint =
   
"http://localhost:/webservices/ExternalRedirectionService.asmx";;
  
 Service  service = new Service();
 Call call= (Call) service.createCall();
 call.setTargetEndpointAddress( new java.net.URL(endpoint) );
 call.setSOAPActionURI("http://[myurl.tld]/WebServices/Login";);

 call.addParameter("username", 
org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
 call.addParameter("password", 
org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
 
 call.setReturnType(org.apache.axis.Constants.XSD_STRING);
  
 String ret = (String) call.invoke(new 
QName("http://[myurl.tld]/WebServices/";, "Login"), new Object[] { "[username]", 
"[password]" } );
  
 System.out.println("Got '" + ret + "'");
 } catch (Exception e) {
 System.err.println(e.toString());
 }
}
  }

This yields the following call:

POST /webservices/ExternalRedirectionService.asmx HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.2alpha
Host: [someurl.tld]:
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://www.[someurl.tld]/WebServices/Login";
Content-Length: 520


http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
 
  http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:ns1="http://www.[someurl.tld]/WebServices/";>
   [username]
   [password]
  
 


(I know I'm using an old version of Axis, that's a constraint I have to work 
with.)

The webserver then replies with:

System.Web.Services.Protocols.SoapException: Server was unable to process 
request. ---> Csla.DataPortalException: DataPortal.Fetch failed ---> 
Csla.Server.CallMethodException: DataPortal_Fetch method call failed ---> 
System.Data.SqlClient.SqlException: Procedure 'security_login' expects 
parameter '@st_username', which was not supplied.

followed by a long stack trace.

My question is, naturally: what am I doing wrong here?

Thanks for any insights.

regards,

-- 
Reinout van Schouwen
http://vanschouwen.info/


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



Re: Basic tips for a newbie, problems with really complex types

2008-02-05 Thread David Muñoz
Thanks for your new answer... the URL you give me there is what I was 
looking for. I understood that xsd:anyType means literally that, it's 
just that I happen to know what will that anyType be, and expected to be 
able to build it using the generated classes... anyway, it will be 
easier to read that tutorial to get some ideas clear.



Regards,

 David

Philipp Leitner escribió:
"I was just wondering if there were any other kind 
  

of diagram more useful for this purpose"



Well, if the issue is having a number of classes (data structures) and trying 
to understand how they relate to each other then I would say class diagrams are 
basically the best visualization you can currently have.

"> I've read 
  
http://ws.apache.org/axis2/1_3/userguide-creatingclients.html#createclients 
but there aren't many details like, for example, this issue with 
OMElement. Where could I find a deeper explanation about using Axis2 and 
it's databinding capabilities, and maybe more examples?"



I probably should have explained that in more detail. Your xsd:anyType is 
basically a placeholder for some undefined XML content. Compare it to a Java 
interface like 'Object invoke(Object parameter)'. Just from looking at the 
interface (or, in your case, the WSDL description) neither you nor any tool in 
the world can tell what /kind of/ object you will be passed. Basically, you 
would have to ask the original developer what he actually wanted to do with 
this method. From the point of static type safety this method is entirely 
undefined.

The same goes for your WSDL description - xsd:anyType says 'there's gonna be 
some XML content here, but I am not going to tell you what it looks like'. 
Therefore Axis2 is unable to create a Java type for this content. The only 
thing Axis2 is able to do is to hand /you/ (i.e., the client) the XML document 
and hope that you know (for instance, because you have talked offline to the 
service provider) what to do with this undefined bunch of data. And this is 
exactly what happens - you can receive a OMElement (an OMElement is just a 
AXIOM representation of a XML (sub-)tree), but unlike other fields you would 
have to deal with the XML data yourself in this special case. Have a look at 
http://ws.apache.org/axis2/1_0/OMTutorial.html for a tutorial on how to work 
with AXIOM.

/philipp

 Original-Nachricht 
  

Datum: Tue, 05 Feb 2008 14:15:41 +0100
Von: [EMAIL PROTECTED]
An: axis-user@ws.apache.org
Betreff: Re: Basic tips for a newbie, problems with really complex types



  
It's my fault for not having explained a bit more... I had thougth  
about making UML diagrams... I was just wondering if there were any  
other kind of diagram more useful for this purpose... thanks for your  
advice regarding this anyway...


I've read  
http://ws.apache.org/axis2/1_3/userguide-creatingclients.html#createclients
 
but there aren't many details like, for example, this issue with  
OMElement. Where could I find a deeper explanation about using Axis2  
and it's databinding capabilities, and maybe more examples?


Thanks for your answers.



Philipp Leitner <[EMAIL PROTECTED]> wrote:



"1º The types are a bit too complex and I find sometimes lost"

You could use some kind of 'source code to class diagram' wizard to   
visualize your data structures after you have generated your stubs   
using wsdl2java (I think there is a good one as plugin for Ecipse).   
Or you could use a tool such as Altova XMLSpy to directly visualize   
your XSD files.


"2º In one of the xsd I have this definition:"

Your XSD file represents an xsd:anyType type. Basically that means   
that about everything can come along at this point in the Web   
service message. Axis2 has no way whatsoever of figuring out what   
this data will look like BEFORE it actually receives a request.   
That's bad news, because it means that you cannot cast it to a   
class. You have to directly deal with this data on XML (or more   
accurately, on AXIOM) level.


hth, philipp

"
Hi, I've just started a WS client and I chose axis2 because I had to do
a little web service server and client and I used axis 1.4 with no
troubles at all.

This is something a bit bigger, since I'm not at college anymore, and I
have two problems. I've been given a huge wsdl and two xsd files
defining some types used for the ws. I've used wsdl2java to generate
code (using adb bindings... I could switch to something a bit more
complex if there were any advantates regarding my current issues), but:

1º The types are a bit too complex and I find sometimes lost, not
knowing how to build a single object for a request... Do you make any
kind of diagrams when dealing with such a large hierarchy of types?

2º In one of the xsd I have this definition:

   
   
   

Re: Basic tips for a newbie, problems with really complex types

2008-02-05 Thread Philipp Leitner
"I was just wondering if there were any other kind 
> of diagram more useful for this purpose"

Well, if the issue is having a number of classes (data structures) and trying 
to understand how they relate to each other then I would say class diagrams are 
basically the best visualization you can currently have.

"> I've read 
> http://ws.apache.org/axis2/1_3/userguide-creatingclients.html#createclients 
> but there aren't many details like, for example, this issue with 
> OMElement. Where could I find a deeper explanation about using Axis2 and 
> it's databinding capabilities, and maybe more examples?"

I probably should have explained that in more detail. Your xsd:anyType is 
basically a placeholder for some undefined XML content. Compare it to a Java 
interface like 'Object invoke(Object parameter)'. Just from looking at the 
interface (or, in your case, the WSDL description) neither you nor any tool in 
the world can tell what /kind of/ object you will be passed. Basically, you 
would have to ask the original developer what he actually wanted to do with 
this method. From the point of static type safety this method is entirely 
undefined.

The same goes for your WSDL description - xsd:anyType says 'there's gonna be 
some XML content here, but I am not going to tell you what it looks like'. 
Therefore Axis2 is unable to create a Java type for this content. The only 
thing Axis2 is able to do is to hand /you/ (i.e., the client) the XML document 
and hope that you know (for instance, because you have talked offline to the 
service provider) what to do with this undefined bunch of data. And this is 
exactly what happens - you can receive a OMElement (an OMElement is just a 
AXIOM representation of a XML (sub-)tree), but unlike other fields you would 
have to deal with the XML data yourself in this special case. Have a look at 
http://ws.apache.org/axis2/1_0/OMTutorial.html for a tutorial on how to work 
with AXIOM.

/philipp

 Original-Nachricht 
> Datum: Tue, 05 Feb 2008 14:15:41 +0100
> Von: [EMAIL PROTECTED]
> An: axis-user@ws.apache.org
> Betreff: Re: Basic tips for a newbie, problems with really complex types

> 
> It's my fault for not having explained a bit more... I had thougth  
> about making UML diagrams... I was just wondering if there were any  
> other kind of diagram more useful for this purpose... thanks for your  
> advice regarding this anyway...
> 
> I've read  
> http://ws.apache.org/axis2/1_3/userguide-creatingclients.html#createclients
>  
> but there aren't many details like, for example, this issue with  
> OMElement. Where could I find a deeper explanation about using Axis2  
> and it's databinding capabilities, and maybe more examples?
> 
> Thanks for your answers.
> 
> 
> 
> Philipp Leitner <[EMAIL PROTECTED]> wrote:
> 
> > "1º The types are a bit too complex and I find sometimes lost"
> >
> > You could use some kind of 'source code to class diagram' wizard to   
> > visualize your data structures after you have generated your stubs   
> > using wsdl2java (I think there is a good one as plugin for Ecipse).   
> > Or you could use a tool such as Altova XMLSpy to directly visualize   
> > your XSD files.
> >
> > "2º In one of the xsd I have this definition:"
> >
> > Your XSD file represents an xsd:anyType type. Basically that means   
> > that about everything can come along at this point in the Web   
> > service message. Axis2 has no way whatsoever of figuring out what   
> > this data will look like BEFORE it actually receives a request.   
> > That's bad news, because it means that you cannot cast it to a   
> > class. You have to directly deal with this data on XML (or more   
> > accurately, on AXIOM) level.
> >
> > hth, philipp
> >
> > "
> > Hi, I've just started a WS client and I chose axis2 because I had to do
> > a little web service server and client and I used axis 1.4 with no
> > troubles at all.
> >
> > This is something a bit bigger, since I'm not at college anymore, and I
> > have two problems. I've been given a huge wsdl and two xsd files
> > defining some types used for the ws. I've used wsdl2java to generate
> > code (using adb bindings... I could switch to something a bit more
> > complex if there were any advantates regarding my current issues), but:
> >
> > 1º The types are a bit too complex and I find sometimes lost, not
> > knowing how to build a single object for a request... Do you make any
> > kind of diagrams when dealing with such a large hierarchy of types?
> >
> > 2º In one of the xsd I have th

Re: Basic tips for a newbie, problems with really complex types

2008-02-05 Thread davidm


It's my fault for not having explained a bit more... I had thougth  
about making UML diagrams... I was just wondering if there were any  
other kind of diagram more useful for this purpose... thanks for your  
advice regarding this anyway...


I've read  
http://ws.apache.org/axis2/1_3/userguide-creatingclients.html#createclients  
but there aren't many details like, for example, this issue with  
OMElement. Where could I find a deeper explanation about using Axis2  
and it's databinding capabilities, and maybe more examples?


Thanks for your answers.



Philipp Leitner <[EMAIL PROTECTED]> wrote:


"1º The types are a bit too complex and I find sometimes lost"

You could use some kind of 'source code to class diagram' wizard to   
visualize your data structures after you have generated your stubs   
using wsdl2java (I think there is a good one as plugin for Ecipse).   
Or you could use a tool such as Altova XMLSpy to directly visualize   
your XSD files.


"2º In one of the xsd I have this definition:"

Your XSD file represents an xsd:anyType type. Basically that means   
that about everything can come along at this point in the Web   
service message. Axis2 has no way whatsoever of figuring out what   
this data will look like BEFORE it actually receives a request.   
That's bad news, because it means that you cannot cast it to a   
class. You have to directly deal with this data on XML (or more   
accurately, on AXIOM) level.


hth, philipp

"
Hi, I've just started a WS client and I chose axis2 because I had to do
a little web service server and client and I used axis 1.4 with no
troubles at all.

This is something a bit bigger, since I'm not at college anymore, and I
have two problems. I've been given a huge wsdl and two xsd files
defining some types used for the ws. I've used wsdl2java to generate
code (using adb bindings... I could switch to something a bit more
complex if there were any advantates regarding my current issues), but:

1º The types are a bit too complex and I find sometimes lost, not
knowing how to build a single object for a request... Do you make any
kind of diagrams when dealing with such a large hierarchy of types?

2º In one of the xsd I have this definition:

   
   
   
   
   

and the generated class QueryExpressionType has an attribute:

/**
* field for ExtraElement
*/
   protected org.apache.axiom.om.OMElement localExtraElement;

How can I cast this to the class representing the actual data in the
message?

Thanks for your time.

I think I should add the files I mentioned before:



--- I omit the files in this reply because of the size of the message



-
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: [axis2] newbie question regarding java proxies generated by wsdl2java

2008-01-01 Thread Amila Suriarachchi
I can not really get you problem

you can set the proxy host and port using
http.proxyHost and http.proxyPort system variables

Amila.


On Dec 24, 2007 1:56 PM, Adrian Herscu <[EMAIL PROTECTED]> wrote:

> After playing more times with the network sniffer (WireShark), I
> discovered that it cannot assemble the HTTP request sent by the Swing
> client. The information appears in the TCP packets. Interesting... It
> can assemble HTTP requests sent by the browser and by the proxy server,
> and also it can assemble all HTTP replies.
>
> I changed the Swing client to connect through the proxy server as the
> browser client does -- new
> CurrencyConvertorStub("
> http://localhost:7586/ws-clients/ws/CurrencyConvertor.asmx";);
>
> Port 7586 is used by the Eclipse TCP monitor, while the proxy servlet
> listens on 8080.
>
> The following appears on the request side of the monitor screen:
> POST /ws-clients/ws/CurrencyConvertor.asmx HTTP/1.1
> http://schemas.xmlsoap.org/soap/envelope/";
> standalone="no"?>
> http://schemas.xmlsoap.org/soap/envelope/
> ">
> 
> http://www.webserviceX.NET/";>
> USD
> ILS
> 
> 
> 
>
> The response is:
> HTTP/1.1 400 Bad Request
> Bad Request (Invalid Number)
>
> Any idea about what else should I check?
> Adrian.
>
> Adrian Herscu wrote:
> > Hi all,
> >
> > I am learning about Axis2 using this WSDL:
> > http://www.webservicex.net/CurrencyConvertor.asmx?wsdl
> >
> > I have generated a Java proxy by using this command:
> > wsdl2java.bat -or -uw -o ${project_loc} -uri ${string_prompt:WSDL URL}
> > and I have built a Swing UI on top of it.
> >
> > I can invoke the service synchronously and asynchronously through the
> > Swing UI.
> >
> > I have also built an HTML+JavaScript UI and it works also. I had to make
> > it work through a server proxy because the cross-domain limitation in
> > browsers. So the browser sends a POST request to
> > http://localhost:7586/ws-clients/ws/CurrencyConvertor.asmx and the
> > server proxy maps it to
> http://www.webservicex.net/CurrencyConvertor.asmx
> >
> > Now I am trying to make the Swing client talk through the server proxy
> > and it doesn't work :-(
> >
> > After monitoring the network I found that the browser creates a nice
> > HTTP POST request, while the Swing client doesn't create any HTTP
> > request... Perhaps it's too late and I am too tired... How could it
> be
> >
> > Please help,
> > Adrian
> >
> > P.S. I can attach the pcap files as a proof
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


Re: [axis2] newbie question regarding java proxies generated by wsdl2java

2007-12-24 Thread Adrian Herscu
After playing more times with the network sniffer (WireShark), I 
discovered that it cannot assemble the HTTP request sent by the Swing 
client. The information appears in the TCP packets. Interesting... It 
can assemble HTTP requests sent by the browser and by the proxy server, 
and also it can assemble all HTTP replies.


I changed the Swing client to connect through the proxy server as the 
browser client does -- new 
CurrencyConvertorStub("http://localhost:7586/ws-clients/ws/CurrencyConvertor.asmx";);


Port 7586 is used by the Eclipse TCP monitor, while the proxy servlet 
listens on 8080.


The following appears on the request side of the monitor screen:
POST /ws-clients/ws/CurrencyConvertor.asmx HTTP/1.1
http://schemas.xmlsoap.org/soap/envelope/"; 
standalone="no"?>

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

http://www.webserviceX.NET/";>
USD
ILS




The response is:
HTTP/1.1 400 Bad Request
Bad Request (Invalid Number)

Any idea about what else should I check?
Adrian.

Adrian Herscu wrote:

Hi all,

I am learning about Axis2 using this WSDL:
http://www.webservicex.net/CurrencyConvertor.asmx?wsdl

I have generated a Java proxy by using this command:
wsdl2java.bat -or -uw -o ${project_loc} -uri ${string_prompt:WSDL URL}
and I have built a Swing UI on top of it.

I can invoke the service synchronously and asynchronously through the 
Swing UI.


I have also built an HTML+JavaScript UI and it works also. I had to make 
it work through a server proxy because the cross-domain limitation in 
browsers. So the browser sends a POST request to 
http://localhost:7586/ws-clients/ws/CurrencyConvertor.asmx and the 
server proxy maps it to http://www.webservicex.net/CurrencyConvertor.asmx


Now I am trying to make the Swing client talk through the server proxy 
and it doesn't work :-(


After monitoring the network I found that the browser creates a nice 
HTTP POST request, while the Swing client doesn't create any HTTP 
request... Perhaps it's too late and I am too tired... How could it be


Please help,
Adrian

P.S. I can attach the pcap files as a proof



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



[axis2] newbie question regarding java proxies generated by wsdl2java

2007-12-23 Thread Adrian Herscu

Hi all,

I am learning about Axis2 using this WSDL:
http://www.webservicex.net/CurrencyConvertor.asmx?wsdl

I have generated a Java proxy by using this command:
wsdl2java.bat -or -uw -o ${project_loc} -uri ${string_prompt:WSDL URL}
and I have built a Swing UI on top of it.

I can invoke the service synchronously and asynchronously through the 
Swing UI.


I have also built an HTML+JavaScript UI and it works also. I had to make 
it work through a server proxy because the cross-domain limitation in 
browsers. So the browser sends a POST request to 
http://localhost:7586/ws-clients/ws/CurrencyConvertor.asmx and the 
server proxy maps it to http://www.webservicex.net/CurrencyConvertor.asmx


Now I am trying to make the Swing client talk through the server proxy 
and it doesn't work :-(


After monitoring the network I found that the browser creates a nice 
HTTP POST request, while the Swing client doesn't create any HTTP 
request... Perhaps it's too late and I am too tired... How could it be


Please help,
Adrian

P.S. I can attach the pcap files as a proof


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



Re: [Axis2] - (Newbie) Is there a stateful context in WebServices ? Or in Axis ?

2007-12-20 Thread Charitha Kankanamge

Hi Loenal,
I'll answer your first question regarding the stateful nature of axis2. 
Of course Axis2 provides stateful session management. I'd suggest you to 
read http://www.developer.com/java/web/article.php/3620661 written by 
Deepal Jayasinghe, which explains Axis2 session management in simple manner.


regards
Charitha

Leonel Gayard wrote:


Hi all,

I just started using Axis2 and WebServices.


From all the examples I've seen, it seems that WebServices are

stateless by nature. Is there any way to have a stateful context ?

Also, is there any interface that I can implement and that is invoked
by the Axis2 server at deploy-time ? When I used servlets, I used to
create a class that implemented the interface ServletContextListener,
and set the class name in the file web.xml. This class would then be
invoked by the servlet container when the application was deployed.

Is there a similar class that is invoked by the server when the
application is deployed ?

[]'s
Leonel

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



 




--
Charitha Kankanamge
WSO2 inc.
Flower Road, Colombo 07
+94 714268070

A bug in the hand is better than one as yet undetected



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



[Axis2] - (Newbie) Is there a stateful context in WebServices ? Or in Axis ?

2007-12-20 Thread Leonel Gayard
Hi all,

I just started using Axis2 and WebServices.

>From all the examples I've seen, it seems that WebServices are
stateless by nature. Is there any way to have a stateful context ?

Also, is there any interface that I can implement and that is invoked
by the Axis2 server at deploy-time ? When I used servlets, I used to
create a class that implemented the interface ServletContextListener,
and set the class name in the file web.xml. This class would then be
invoked by the servlet container when the application was deployed.

Is there a similar class that is invoked by the server when the
application is deployed ?

[]'s
Leonel

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



[newbie] server-application for soap-messages?

2007-11-06 Thread Thomas Barth
Hi,
I want to create a socket server to be able to get soap-messages from
connected clients. The client should get a response as soap-messag too.

The SocketServer reads data as follows

  public void run() {
try {
  InputStream inputStream = socket.getInputStream();

  ByteArrayOutputStream byteArrayOutputStream = new
ByteArrayOutputStream();
  byte[] buf = new byte[4096];
  int bufcount;
  while ((bufcount = inputStream.read(buf)) > 0) {
byteArrayOutputStream.write(buf, 0, bufcount);
  }

The data consist of a multipart/related message:

POST  HTTP/1.0
Content-Type: multipart/related;
boundary="=_Part_1_5546792.1194363637711"; type="text/xml";
start="3fa4a6eef42c6ae1bc2af56c84ffdeb4479e"
Content-Length: 20388
Authorization: Basic dTAwMDFhNGQ6Nm5ScXNXbzE=
SOAPAction: ""

--=_Part_1_5546792.1194366154523
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-ID: 0b3a28cf8e010f2f83c1edabe8b29546b8d776bc


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
 
  http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/
schema/REL-5-MM7-1-2">d3050f28b717095923f65657d427a8a8c63b5ea2
 
 
  
 


--=_Part_1_5546792.1194366154523
Content-Type: multipart/mixed;
boundary="=_Part_0_20590970.1194366154479"
Content-Transfer-Encoding: binary
Content-ID: 

--=_Part_0_20590970.1194366154479
Content-Type: text/plain; name=message.txt; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Content-ID: 

my picture
--=_Part_0_20590970.1194366154479
Content-Type: image/jpg; name=pic.jpg
Content-Transfer-Encoding: base64
Content-ID: 

/9j/4AAQSkZJRgABAQEASABIAAD/4QAWRXhpZgAATU0AKggAAAD//gAXQ3JlYXRlZCB3
vUjAXvgHAoXMZ9VIyDLmH7G7Luc6P6JYflW6eqniBGPDpg64ed5zl0+HdLC8q5raP1Le32NJOo//
2Q==
--=_Part_0_20590970.1194363637674--

--=_Part_1_5546792.1194363637711--

Can you give me a hint of how to use axis to get the elements of the
message ? I just want to save the attachement of such a message as a
file and send the status code as a soap message back to connected client.

Regards,
Thomas B

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



Re: A little help on a newbie

2007-10-17 Thread Anne Thomas Manes
Common practice is to define the exact message structures expected and
returned in the WSDL file. This approach is more easily consumed by
application tooling than an undefined WSDL with schemas and samples.

Anne

On 10/16/07, Dimitris Mouchritsas <[EMAIL PROTECTED]> wrote:
> Deepal Jayasinghe wrote:
> > Hi Dimitris ,
> > You may use Axis2 POJO rather than using Axiom directly. Then you can
> > come up with the java bean with the required properties , after that you
> > can use that as the method signature. If you do so Axis2 will generate
> > the correct wsdl for you.
> >
> > Thanks
> > Deepal
> >
> >> Hi everyone, I've started to use axis2 (version 1.2) for almost a month
> >> now and I'd like your help with deployment.
> >> Even though the service is up and working fine in my development
> >> environment I would like some advice
> >> before we need to deploy to the client.
> >> The messages I need to pass through, say lessons would presumably be in
> >> the following form:
> >> (I'm writing without a namespace defined but I would like one)
> >>
> >> ===
> >> Request:
> >> 
> >>
> >> Response:
> >> 
> >>  Lesson's title
> >>  blah blah
> >>  21/12/2006
> >>  
> >>  
> >>  something.pdf
> >>  base 64 encoded data
> >>   
> >>   
> >> 
> >> ===
> >>
> >> So I've written my service class like:
> >>
> >> ==
> >> package org.example;
> >>
> >> // import stuff
> >>
> >> public class MyService {
> >>
> >>   public OMElement viewLesson(OMElement xml) {
> >>   // process the element and return the xml
> >>   }
> >> }
> >> ==
> >>
> >> and in my services.xml I have a service group and say MyService in there:
> >> ===
> >>
> >>  >> class="my.real.package.lifecycle.MyServiceLifeCycle"
> >> scope="application"
> >> targetNamespace="http://www.example.org";>
> >>
> >>
> >>   My Description
> >>
> >>
> >>http://www.example.org"/>
> >>
> >>
> >>
> >>
> >>org.example.MyService
> >>
> >>
> >>
> >> >>
> >> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" />
> >>
> >> 
> >>
> >> Now I know axis can't know about my data to produce a proper wsdl file,
> >> but what I get is weird, this is what I don't understand:
> >>
> >> http://www.examle.org";>
> >>
> >>My Documentation
> >>
> >>
> >>http://www.example.org";
> >> attributeFormDefault="qualified" elementFormDefault="qualified">
> >>
> >>
> >>
> >> >> nillable="true"/>
> >>
> >>
> >>
> >>
> >>
> >>
> >> >> nillable="true"/>
> >>
> >>
> >>
> >> ... Rest of stuff
> >> ===
> >>
> >>
> >> Why does viewLesson contain another element in there named viewLesson?
> >> And viewLessonResponse an element named return? What am I doing wrong?
> >> Sorry for the long post, but I tried to be as detailed as possible.
> >>
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> I see what you mean, I'll give it a try. What is the current practice in
> Web Services though? Have the exact mapping in the wsdl file or use
> arbitrary xml and provide a schema and examples to the client?
>
> -
> 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: A little help on a newbie

2007-10-16 Thread Dimitris Mouchritsas

Deepal Jayasinghe wrote:

Hi Dimitris ,
You may use Axis2 POJO rather than using Axiom directly. Then you can
come up with the java bean with the required properties , after that you
can use that as the method signature. If you do so Axis2 will generate
the correct wsdl for you.

Thanks
Deepal
  

Hi everyone, I've started to use axis2 (version 1.2) for almost a month
now and I'd like your help with deployment.
Even though the service is up and working fine in my development
environment I would like some advice
before we need to deploy to the client.
The messages I need to pass through, say lessons would presumably be in
the following form:
(I'm writing without a namespace defined but I would like one)

===
Request:


Response:

 Lesson's title
 blah blah
 21/12/2006
 
 
 something.pdf
 base 64 encoded data
  
  

===

So I've written my service class like:

==
package org.example;

// import stuff

public class MyService {

  public OMElement viewLesson(OMElement xml) {
  // process the element and return the xml
  }
}
==

and in my services.xml I have a service group and say MyService in there:
===

http://www.example.org";>

   
  My Description
   

   http://www.example.org"/>

   

   
   org.example.MyService
   

   
   
   


Now I know axis can't know about my data to produce a proper wsdl file,
but what I get is weird, this is what I don't understand:

http://www.examle.org";>
   
   My Documentation
   
   
   http://www.example.org";
attributeFormDefault="qualified" elementFormDefault="qualified">
   
   
   
   
   
   
   
   
   
   
   
   
   
   
... Rest of stuff
===


Why does viewLesson contain another element in there named viewLesson?
And viewLessonResponse an element named return? What am I doing wrong?
Sorry for the long post, but I tried to be as detailed as possible.




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






  
I see what you mean, I'll give it a try. What is the current practice in 
Web Services though? Have the exact mapping in the wsdl file or use 
arbitrary xml and provide a schema and examples to the client?


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



Re: A little help on a newbie

2007-10-16 Thread Deepal Jayasinghe
Hi Dimitris ,
You may use Axis2 POJO rather than using Axiom directly. Then you can
come up with the java bean with the required properties , after that you
can use that as the method signature. If you do so Axis2 will generate
the correct wsdl for you.

Thanks
Deepal
> Hi everyone, I've started to use axis2 (version 1.2) for almost a month
> now and I'd like your help with deployment.
> Even though the service is up and working fine in my development
> environment I would like some advice
> before we need to deploy to the client.
> The messages I need to pass through, say lessons would presumably be in
> the following form:
> (I'm writing without a namespace defined but I would like one)
>
> ===
> Request:
> 
>
> Response:
> 
>  Lesson's title
>  blah blah
>  21/12/2006
>  
>  
>  something.pdf
>  base 64 encoded data
>   
>   
> 
> ===
>
> So I've written my service class like:
>
> ==
> package org.example;
>
> // import stuff
>
> public class MyService {
>
>   public OMElement viewLesson(OMElement xml) {
>   // process the element and return the xml
>   }
> }
> ==
>
> and in my services.xml I have a service group and say MyService in there:
> ===
>
>  class="my.real.package.lifecycle.MyServiceLifeCycle"
> scope="application"
> targetNamespace="http://www.example.org";>
>
>
>   My Description
>
>
>http://www.example.org"/>
>
>
>
>
>org.example.MyService
>
>
>
>
> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" />
>
> 
>
> Now I know axis can't know about my data to produce a proper wsdl file,
> but what I get is weird, this is what I don't understand:
>
> http://www.examle.org";>
>
>My Documentation
>
>
>http://www.example.org";
> attributeFormDefault="qualified" elementFormDefault="qualified">
>
>
>
> nillable="true"/>
>
>
>
>
>
>
> nillable="true"/>
>
>
>
> ... Rest of stuff
> ===
>
>
> Why does viewLesson contain another element in there named viewLesson?
> And viewLessonResponse an element named return? What am I doing wrong?
> Sorry for the long post, but I tried to be as detailed as possible.
>
>
>
>
> -
> 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]



A little help on a newbie

2007-10-16 Thread Dimitris Mouchritsas

Hi everyone, I've started to use axis2 (version 1.2) for almost a month
now and I'd like your help with deployment.
Even though the service is up and working fine in my development
environment I would like some advice
before we need to deploy to the client.
The messages I need to pass through, say lessons would presumably be in
the following form:
(I'm writing without a namespace defined but I would like one)

===
Request:


Response:

 Lesson's title
 blah blah
 21/12/2006
 
 
 something.pdf
 base 64 encoded data
  
  

===

So I've written my service class like:

==
package org.example;

// import stuff

public class MyService {

  public OMElement viewLesson(OMElement xml) {
  // process the element and return the xml
  }
}
==

and in my services.xml I have a service group and say MyService in there:
===
http://www.example.org";>

   
  My Description
   

   http://www.example.org"/>

   

   
   org.example.MyService
   

   
   
   


Now I know axis can't know about my data to produce a proper wsdl file,
but what I get is weird, this is what I don't understand:

http://www.examle.org";>
   
   My Documentation
   
   
   http://www.example.org";
attributeFormDefault="qualified" elementFormDefault="qualified">
   
   
   
   
   
   
   
   
   
   
   
   
   
   
... Rest of stuff
===

Why does viewLesson contain another element in there named viewLesson?
And viewLessonResponse an element named return? What am I doing wrong?
Sorry for the long post, but I tried to be as detailed as possible.




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



Re: NEWBIE: Help required in getting user defined object array as web service output

2007-10-08 Thread Deepal Jayasinghe
Hi vargheese,
If you are new to Web services , I would recommend you to use Axis2 not
Axis1. Working with Axis2 is comparatively easy .

Thanks
Deepal
>
> Hi,
> Can someone pls tell me how to invoke a service  that returns an array
> of user defined objects in AXIS ? I tried a few and is not working for
> me. Thanks in advance.
>
> Thanks and Regards
> Vargheese Thomas
> 44-141-2280292 (o), GDP: 8-228-0292
> Mobile: 0782-452-9427
> 




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



Re: NEWBIE: Help required in getting user defined object array as web service output

2007-10-05 Thread Upul Godage
Hi,

Did you try this tutorial? This has a similar operation. Employee[]
getAllEmployees()

http://www.developer.com/java/web/article.php/10935_3443951_2

Upul


On 10/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
>
> Hi,
> Can someone pls tell me how to invoke a service  that returns an array of
> user defined objects in AXIS ? I tried a few and is not working for me.
> Thanks in advance.
>
> Thanks and Regards
> Vargheese Thomas
> 44-141-2280292 (o), GDP: 8-228-0292
> Mobile: 0782-452-9427
>
> --
>
>  This communication is for informational purposes only. It is not intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market
> prices, data and other information are not warranted as to completeness or
> accuracy and are subject to change without notice. Any comments or
> statements made herein do not necessarily reflect those of JPMorgan Chase &
> Co., its subsidiaries and affiliates. This transmission may contain
> information that is privileged, confidential, legally privileged, and/or
> exempt from disclosure under applicable law. If you are not the intended
> recipient, you are hereby notified that any disclosure, copying,
> distribution, or use of the information contained herein (including any
> reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any
> attachments are believed to be free of any virus or other defect that might
> affect any computer system into which it is received and opened, it is the
> responsibility of the recipient to ensure that it is virus free and no
> responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and
> affiliates, as applicable, for any loss or damage arising in any way from
> its use. If you received this transmission in error, please immediately
> contact the sender and destroy the material in its entirety, whether in
> electronic or hard copy format. Thank you. Please refer to
> http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK
> legal entities.
>


NEWBIE: Help required in getting user defined object array as web service output

2007-10-05 Thread vargheese . t . jose
Hi,
Can someone pls tell me how to invoke a service  that returns an array of 
user defined objects in AXIS ? I tried a few and is not working for me. 
Thanks in advance.

Thanks and Regards
Vargheese Thomas
44-141-2280292 (o), GDP: 8-228-0292
Mobile: 0782-452-9427


-
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.

Re: Newbie Help with deploy.wsdd

2007-10-02 Thread New AxisU
Anne,

Thanks for the link & for writing the document.  I think it will help me!


On 10/1/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
>
> "Document" style means that Axis expects you to use a wrapper object
> as your parameter. "Wrapped" style means that Axis will automagically
> wrap your parameters in a wrapper object for you. See
>
> http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html
> for a description of wrapped style.
>
> Anne
>
> On 10/1/07, New AxisU <[EMAIL PROTECTED]> wrote:
> > SUCCESS!
> >
> > Following Anne's advice I went back to the wsdl above & discovered that
> it
> > was missing some definitions.  But that wasn't enough.  I went back to
> the
> > old version & cut it down similarly & of course it worked.  So then I
> > started trying to see what was different between them.  Trying to make
> the
> > new wsdl look like the old one I was able to get a good deploy.wsdd &
> good
> > message.
> >
> > If you are reading this, let me say that I am still unclear about all of
> > this.  Here's the deploy.wsdd that didn't work.  Notice that
> > style="document"  in the  tag.
> >
> >
> >
> >  > xmlns="http://xml.apache.org/axis/wsdd/";
> >
> > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java
> > ">
> >
> >   
> >
> >> use="literal">
> > 
> >> value="urn:discovery.services.netcentric.sec"/>
> >   
> >http://dws.sec,urn:us:gov:ic:ism:v2,urn:discovery.services.netcentric.sec,http://www.opengis.net/gml
> "/>
> >   
> >   
> >   
> >   
> >> returnQName="getVersionReturn" returnType="rtns:string" xmlns:rtns="
> > http://www.w3.org/2001/XMLSchema"; >
> >   
> >   
> >
> > 
> > 
> >
> > The corresponding wsdl is
> >
> >
> > 
> >  > xmlns:impl="urn:discovery.services.netcentric.sec"
> > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ "
> > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema "
> > xmlns="urn:discovery.services.netcentric.sec"
> > targetNamespace="urn:discovery.services.netcentric.sec">
> >  
> >> xmlns="http://www.w3.org/2001/XMLSchema";>
> >
> > 
> > 
> >
> > 
> >  
> >   
> >   
> > 
> >
> >   
> >
> >  
> >  
> >
> >  
> >   
> >  
> >  
> >   
> > > message="impl:getVersionRequest"/>
> > > message="impl:getVersionResponse"/>
> >   
> >  
> >  
> >   http://schemas.xmlsoap.org/soap/http"/>
> >   
> >
> >
> > 
> >
> >
> > 
> >
> >   
> >  
> >  
> >> binding="impl:discoverySoapBinding">
> >http://localhost:8015/dF-1.4.1/services/discovery"/>
> >   
> >  
> > 
> >
> > The magic fix was to change
> >
> >
> >
> >  
> >
> >  
> >   
> >  
> >
> > to
> >
> >  
> > 
> >   
> >   
> >  > element="impl:getVersionResponse"/>
> >   
> >
> > Now the deploy.wsdd looks like
> >
> >  > xmlns="http://xml.apache.org/axis/wsdd/";
> >
> > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java
> > ">
> >
> >   
> >
> >> use="literal">
> >
> >> value="urn:discovery.services.netcentric.sec"/>
> >   
> >
> >  http://dws.sec,urn:us:gov:ic:ism:v2,urn:discovery.services.netcentric.sec,http://www.opengis.net/gml
> "/>
> >   
> >   
> >   
> >   
> >> xmlns:operNS="urn:discovery.services.netcentric.sec"
> > returnQName="retNS:getVersionReturn" xmlns:retNS="urn:
> > discovery.services.netcentric.sec" returnType="rtns:string"
> > xmlns:rtns="http://www.w3.org/2001/XMLSchema"; >
> >   
> >   
> >
> >   
> > 
> >
> > Notice that the style is now "wrapped" and the namespaces inside
>  > name="getVersion" are all different & for my purposes correct.
> >
> > I'm happy that my wsdl is working, but I still wish I understood why
> this is
> > so?  What controls the style="" setting?  Is there some website I could
> > refer to to explain why the
> >
> >  > element="impl:getVersionResponse"/>
> >
> > is more correct?
> >
> >
> > On 10/1/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > I suggest that you edit the WSDL, then run WSDL2Java to generate your
> new
> > WSDD.
> > >
> > > Anne
> > >
> > > On 9/28/07, New AxisU < [EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Hi, I need help with deploy.wsdd & ...?
> > > >
> > > > I have an existing wsdl that returns this soap message:
> > > >
> > > >  > > >
> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> > > >   xmlns:xsd=" http://www.w3.org/2001/XMLSchema "
> > > >
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> > > >   
> > > >  > > > xmlns="urn:discovery.services.netcentric.sec ">
> > > >   Version 1.0 from discovery in
> > > > tomcat
> > > > 
> > > >   
> > > > 
> > > >
> > > > The schemas inside this wsdl were updated & so I need to make a new
> > version
> > > > of the web service.
> > > >
> > > > After I generate java code using axis 1.4 and edit the deploy.wsddby
> > hand,
> > > > the best I've been able t

Re: Newbie Help with deploy.wsdd

2007-10-01 Thread Anne Thomas Manes
"Document" style means that Axis expects you to use a wrapper object
as your parameter. "Wrapped" style means that Axis will automagically
wrap your parameters in a wrapper object for you. See
http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html
for a description of wrapped style.

Anne

On 10/1/07, New AxisU <[EMAIL PROTECTED]> wrote:
> SUCCESS!
>
> Following Anne's advice I went back to the wsdl above & discovered that it
> was missing some definitions.  But that wasn't enough.  I went back to the
> old version & cut it down similarly & of course it worked.  So then I
> started trying to see what was different between them.  Trying to make the
> new wsdl look like the old one I was able to get a good deploy.wsdd & good
> message.
>
> If you are reading this, let me say that I am still unclear about all of
> this.  Here's the deploy.wsdd that didn't work.  Notice that
> style="document"  in the  tag.
>
>
>
>  xmlns="http://xml.apache.org/axis/wsdd/";
>
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java
> ">
>
>   
>
>use="literal">
> 
>value="urn:discovery.services.netcentric.sec"/>
>   
>http://dws.sec,urn:us:gov:ic:ism:v2,urn:discovery.services.netcentric.sec,http://www.opengis.net/gml"/>
>   
>   
>   
>   
>returnQName="getVersionReturn" returnType="rtns:string" xmlns:rtns="
> http://www.w3.org/2001/XMLSchema"; >
>   
>   
>
> 
> 
>
> The corresponding wsdl is
>
>
> 
>  xmlns:impl="urn:discovery.services.netcentric.sec"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ "
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema "
> xmlns="urn:discovery.services.netcentric.sec"
> targetNamespace="urn:discovery.services.netcentric.sec">
>  
>xmlns="http://www.w3.org/2001/XMLSchema";>
>
> 
> 
>
> 
>  
>   
>   
> 
>
>   
>
>  
>  
>
>  
>   
>  
>  
>   
> message="impl:getVersionRequest"/>
> message="impl:getVersionResponse"/>
>   
>  
>  
>   http://schemas.xmlsoap.org/soap/http"/>
>   
>
>
> 
>
>
> 
>
>   
>  
>  
>binding="impl:discoverySoapBinding">
>http://localhost:8015/dF-1.4.1/services/discovery"/>
>   
>  
> 
>
> The magic fix was to change
>
>
>
>  
>
>  
>   
>  
>
> to
>
>  
> 
>   
>   
>  element="impl:getVersionResponse"/>
>   
>
> Now the deploy.wsdd looks like
>
>  xmlns="http://xml.apache.org/axis/wsdd/";
>
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java
> ">
>
>   
>
>use="literal">
>
>value="urn:discovery.services.netcentric.sec"/>
>   
>
>  http://dws.sec,urn:us:gov:ic:ism:v2,urn:discovery.services.netcentric.sec,http://www.opengis.net/gml"/>
>   
>   
>   
>   
>xmlns:operNS="urn:discovery.services.netcentric.sec"
> returnQName="retNS:getVersionReturn" xmlns:retNS="urn:
> discovery.services.netcentric.sec" returnType="rtns:string"
> xmlns:rtns="http://www.w3.org/2001/XMLSchema"; >
>   
>   
>
>   
> 
>
> Notice that the style is now "wrapped" and the namespaces inside  name="getVersion" are all different & for my purposes correct.
>
> I'm happy that my wsdl is working, but I still wish I understood why this is
> so?  What controls the style="" setting?  Is there some website I could
> refer to to explain why the
>
>  element="impl:getVersionResponse"/>
>
> is more correct?
>
>
> On 10/1/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
>
> >
> > I suggest that you edit the WSDL, then run WSDL2Java to generate your new
> WSDD.
> >
> > Anne
> >
> > On 9/28/07, New AxisU < [EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Hi, I need help with deploy.wsdd & ...?
> > >
> > > I have an existing wsdl that returns this soap message:
> > >
> > >  > >
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> > >   xmlns:xsd=" http://www.w3.org/2001/XMLSchema "
> > >
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> > >   
> > >  > > xmlns="urn:discovery.services.netcentric.sec ">
> > >   Version 1.0 from discovery in
> > > tomcat
> > > 
> > >   
> > > 
> > >
> > > The schemas inside this wsdl were updated & so I need to make a new
> version
> > > of the web service.
> > >
> > > After I generate java code using axis 1.4 and edit the deploy.wsdd by
> hand,
> > > the best I've been able to come up with is
> > >
> > >  > >
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ "
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema "
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ">
> > >   
> > >  > > xmlns="urn:discovery.services.netcentric.sec
> > > ">darsFederation discovery 1.4.1
> > >   
> > > 
> > >
> > > There are two things wrong:
> > >
> > > 1) What happened to the  tags?
> > > 2) xmlns="urn:discovery.services.netcentric.sed" should
> be
> > > on the missing
> > > tag & not on the 
> > >
> > > I'm using document/literal/wrapped (wsdl is at the

Re: Newbie Help with deploy.wsdd

2007-10-01 Thread New AxisU
SUCCESS!

Following Anne's advice I went back to the wsdl above & discovered that it
was missing some definitions.  But that wasn't enough.  I went back to the
old version & cut it down similarly & of course it worked.  So then I
started trying to see what was different between them.  Trying to make the
new wsdl look like the old one I was able to get a good deploy.wsdd & good
message.

If you are reading this, let me say that I am still unclear about all of
this.  Here's the deploy.wsdd that didn't work.  Notice that
style="document"  in the  tag.


http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>

  

  

  
  
  http://dws.sec,urn:us:gov:ic:ism:v2,urn:discovery.services.netcentric.sec,http://www.opengis.net/gml"/
>
  
  
  
  
  http://www.w3.org/2001/XMLSchema"; >
  
  




The corresponding wsdl is


http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdlsoap="
http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="
http://www.w3.org/2001/XMLSchema"; xmlns="urn:
discovery.services.netcentric.sec" targetNamespace="urn:
discovery.services.netcentric.sec">
 
  http://www.w3.org/2001/XMLSchema";>
   

   
   

 
  
 

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

   
   

   
  
 
 
  
   http://localhost:8015/dF-1.4.1/services/discovery"/>
  
 


The magic fix was to change

 
   
 
  
 

to

 

  
  

  

Now the deploy.wsdd looks like

http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>

  

  

  
  

 http://dws.sec,urn:us:gov:ic:ism:v2,urn:discovery.services.netcentric.sec,http://www.opengis.net/gml"/
>
  
  
  
  
  http://www.w3.org/2001/XMLSchema"; >
  
  

  


Notice that the style is now "wrapped" and the namespaces inside 

is more correct?

On 10/1/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

> I suggest that you edit the WSDL, then run WSDL2Java to generate your new
> WSDD.
>
> Anne
>
> On 9/28/07, New AxisU <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi, I need help with deploy.wsdd & ...?
> >
> > I have an existing wsdl that returns this soap message:
> >
> >  > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> >   xmlns:xsd="http://www.w3.org/2001/XMLSchema "
> >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> >   
> >  > xmlns="urn:discovery.services.netcentric.sec ">
> >   Version 1.0 from discovery in
> > tomcat
> > 
> >   
> > 
> >
> > The schemas inside this wsdl were updated & so I need to make a new
> version
> > of the web service.
> >
> > After I generate java code using axis 1.4 and edit the deploy.wsdd by
> hand,
> > the best I've been able to come up with is
> >
> >  > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema "
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> >   
> >  > xmlns="urn:discovery.services.netcentric.sec
> > ">darsFederation discovery 1.4.1
> >   
> > 
> >
> > There are two things wrong:
> >
> > 1) What happened to the  tags?
> > 2) xmlns="urn:discovery.services.netcentric.sed" should be
> > on the missing
> > tag & not on the 
> >
> > I'm using document/literal/wrapped (wsdl is at the bottom).
> >
> > Here are some entries from edited deploy.wsdd:
> >
> >  > use="literal">
> >> qname="ns:getVersion"
> > xmlns:ns="urn: discovery.services.netcentric.sec"
> > returnQName="rtns:getVersionReturn"
> > returnType="tns:getVersionResponse"
> > xmlns:rtns="urn:discovery.services.netcentric.sec" >
> >   
> >...
> >
> > I'm really confused by the missing tags because it seems clear from the
> wsdl
> > (below) that they should be there.
> > Thanks for any & all help! I know that I'm just doing something wrong.
> >
> >
> >
> > -WSDL ---
> >
> > 
> >  >  xmlns:impl="urn:discovery.services.netcentric.sec"
> >  xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/";
> >  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
> >  xmlns:xsd=" http://www.w3.org/2001/XMLSchema";
> >  targetNamespace="urn:discovery.services.netcentric.sec"
> >  xmlns="http://schemas.xmlsoap.org/wsdl/";>
> >   
> >  ...
> >  
> >  
> >  
> >  
> >   
> >  
> >  
> >   
> > > message="impl:getVersionRequest"/>
> >   

Re: Newbie Help with deploy.wsdd

2007-10-01 Thread Anne Thomas Manes
I suggest that you edit the WSDL, then run WSDL2Java to generate your new WSDD.

Anne

On 9/28/07, New AxisU <[EMAIL PROTECTED]> wrote:
>
>
> Hi, I need help with deploy.wsdd & ...?
>
> I have an existing wsdl that returns this soap message:
>
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
>   xmlns:xsd="http://www.w3.org/2001/XMLSchema "
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>   
>  xmlns="urn:discovery.services.netcentric.sec ">
>   Version 1.0 from discovery in
> tomcat
> 
>   
> 
>
> The schemas inside this wsdl were updated & so I need to make a new version
> of the web service.
>
> After I generate java code using axis 1.4 and edit the deploy.wsdd by hand,
> the best I've been able to come up with is
>
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema "
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>   
>  xmlns="urn:discovery.services.netcentric.sec
> ">darsFederation discovery 1.4.1
>   
> 
>
> There are two things wrong:
>
> 1) What happened to the  tags?
> 2) xmlns="urn:discovery.services.netcentric.sed" should be
> on the missing
> tag & not on the 
>
> I'm using document/literal/wrapped (wsdl is at the bottom).
>
> Here are some entries from edited deploy.wsdd:
>
>  use="literal">
>qname="ns:getVersion"
> xmlns:ns="urn: discovery.services.netcentric.sec"
> returnQName="rtns:getVersionReturn"
> returnType="tns:getVersionResponse"
> xmlns:rtns="urn:discovery.services.netcentric.sec" >
>   
>...
>
> I'm really confused by the missing tags because it seems clear from the wsdl
> (below) that they should be there.
> Thanks for any & all help! I know that I'm just doing something wrong.
>
>
>
> -WSDL ---
>
> 
>   xmlns:impl="urn:discovery.services.netcentric.sec"
>  xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/";
>  xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
>  xmlns:xsd=" http://www.w3.org/2001/XMLSchema";
>  targetNamespace="urn:discovery.services.netcentric.sec"
>  xmlns="http://schemas.xmlsoap.org/wsdl/";>
>   
>  ...
>  
>  
>  
>  
>   
>  
>  
>   
> message="impl:getVersionRequest"/>
> message="impl:getVersionResponse"/>
>   
>  
>  
>transport="http://schemas.xmlsoap.org/soap/http"/>
>   
>
>
> 
>
>
> 
>
>   
>  
>  
>binding="impl:discoverySoapBinding">
> location="http://localhost:8015/df-1.4.1/services/discovery"/>
>   
>  
> 

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



Newbie Help with deploy.wsdd

2007-09-28 Thread New AxisU
Hi, I need help with deploy.wsdd & ...?

I have an existing wsdl that returns this soap message:

http://schemas.xmlsoap.org/soap/envelope/";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  

  Version 1.0 from discovery in
tomcat

  


The schemas inside this wsdl were updated & so I need to make a new version
of the web service.

After I generate java code using axis 1.4 and edit the deploy.wsdd by hand,
the best I've been able to come up with is

http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>
  
darsFederation
discovery 1.4.1
  


There are two things wrong:

1) What happened to the  tags?
2) xmlns="urn:discovery.services.netcentric.sed" should be on the missing
tag & not on the 

I'm using document/literal/wrapped (wsdl is at the bottom).

Here are some entries from edited deploy.wsdd:


  
  
   ...

I'm really confused by the missing tags because it seems clear from the wsdl

(below) that they should be there.
Thanks for any & all help! I know that I'm just doing something wrong.


-WSDL ---


http://schemas.xmlsoap.org/wsdl/";
 xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
 xmlns:xsd="http://www.w3.org/2001/XMLSchema";
 targetNamespace="urn:discovery.services.netcentric.sec"
 xmlns="http://schemas.xmlsoap.org/wsdl/";>
 
 ...
 
 
 
 
  
 
 
  
   
   
  
 
 
  http://schemas.xmlsoap.org/soap/http"/>
  
   
   

   
   

   
  
 
 
  
   http://localhost:8015/df-1.4.1/services/discovery"/>
  
 



Re: Newbie need help with client-config.wsdd

2007-09-28 Thread Mike Krell
I could be wrong but I don't think that it works the way you are intending.
In the line  you are basically setting up a
variable called "http" which references the class "
org.apache.axis.transport.http.HTTPSender".  This variable can then be used
as shorthand for other configurations in the same config file.  For
example...


.
.
.






Here a handler called "LocalResponder" is being defined and later being
referenced in the "local" transport.

In your configuration, it looks like you are trying to override the variable
setting to " myownHandler".  It's the same as saying

int x = 1;
x = 2;

What "http" actually gets set to will probably depend on the parser.

You can try to create a new transport and call it "http2".  Not sure how
this will work but I believe the Axis will only use one transport handler.
(You could try to set the transports up in a chain).

Looking back at in this chain, I think that the solution for you may be to
write your own transport which then would call the 2 webservices.

On 9/28/07, Yolanda Ward <[EMAIL PROTECTED]> wrote:
>
>
> I'm sure I'm probably confusing you because I'm still not sure I have the
> correct terminology down.
> Doesn't the pivot attribute associate a handler with the http protocol?  I
> want to use 2 different handlers for an http request.
>
> So in reality I want to do this however, I don't know how to do it
> programmatically.
> 
> 
>
>
> Mike Krell-4 wrote:
> >
> > Ok, I may not understand completely what you are doing.  You say that
> you
> > are trying to call 2 different web services using one application and
> one
> > client-config.wsdd.  The transport doesn't do this.  The transport is
> how
> > the data moves across the wire.  I would look at the HTTP transport the
> > same
> > way a browser communicates with a web server - it translates you app's
> > request into an HTTP request and sends it to the web server - in this
> case
> > an AxisServlet.  To get your app to call 2 different web services, you
> > would
> > need to specify the endpoint url - something along the lines of this...
> >
> > MyServiceOneLocator  locator1 = new MyServiceOneLocator  ();
> > URL wsURL = new URL();
> > MyWebService myWS = locator1.getMyWebservice(wsURL);
> >
> > To call the second web service, the code is the same - just change the
> > URL.
> >
> > Hope this helps.
> >
> > Mikek
> >
> > On 9/28/07, Yolanda Ward <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Yes, I'm trying to call 2 different webservices using one application
> and
> >> one
> >> client-config.wsdd file.
> >>
> >> Mike Krell-4 wrote:
> >> >
> >> > What is it that you are trying to accomplish by having 2 HTTP
> >> transports?
> >> > Is it just a matter of calling 2 different webservices?  The reason
> why
> >> I
> >> > ask is the solution may not be in the transport itself but in a
> >> handler.
> >> >
> >> > On 9/27/07, Yolanda Ward < [EMAIL PROTECTED]> wrote:
> >> >>
> >> >>
> >> >> You are right, you can not have two http transports but essentially
> >> >> that's
> >> >>
> >> >> the functionality that I need.  I need to be able to handle 2
> >> different
> >> >> transports at the same time.  I think I have something fundamentally
> >> >> wrong
> >> >> but there is probably a solution out there.  I was looking for that
> >> >> solution.
> >> >>
> >> >>
> >> >> dreamryder wrote:
> >> >> >
> >> >> > I don't think you can have two http transports in the same config
> >> file.
> >> >> > Try commenting out:
> >> >> >   >> >> > pivot="java: org.apache.axis.transport.http.HTTPSender"/>
> >> >> >
> >> >> > And leave in your myownHandler.
> >> >> > Debug it and see if the contructor even gets called?
> >> >> > -jeff
> >> >> >
> >> >> >
> >> >> > -Original Message-
> >> >> > From: Yolanda Ward [mailto:[EMAIL PROTECTED]
> >> >> > Sent: Thursday, September 27, 2007 4:14 PM
> >> >> > To: axis-user@ws.apache.org
> >> >> > Subject: 

Re: Newbie need help with client-config.wsdd

2007-09-28 Thread Yolanda Ward

I'm sure I'm probably confusing you because I'm still not sure I have the
correct terminology down.  
Doesn't the pivot attribute associate a handler with the http protocol?  I
want to use 2 different handlers for an http request.  

So in reality I want to do this however, I don't know how to do it
programmatically.




Mike Krell-4 wrote:
> 
> Ok, I may not understand completely what you are doing.  You say that you
> are trying to call 2 different web services using one application and one
> client-config.wsdd.  The transport doesn't do this.  The transport is how
> the data moves across the wire.  I would look at the HTTP transport the
> same
> way a browser communicates with a web server - it translates you app's
> request into an HTTP request and sends it to the web server - in this case
> an AxisServlet.  To get your app to call 2 different web services, you
> would
> need to specify the endpoint url - something along the lines of this...
> 
> MyServiceOneLocator  locator1 = new MyServiceOneLocator  ();
> URL wsURL = new URL();
> MyWebService myWS = locator1.getMyWebservice(wsURL);
> 
> To call the second web service, the code is the same - just change the
> URL.
> 
> Hope this helps.
> 
> Mikek
> 
> On 9/28/07, Yolanda Ward <[EMAIL PROTECTED]> wrote:
>>
>>
>> Yes, I'm trying to call 2 different webservices using one application and
>> one
>> client-config.wsdd file.
>>
>> Mike Krell-4 wrote:
>> >
>> > What is it that you are trying to accomplish by having 2 HTTP
>> transports?
>> > Is it just a matter of calling 2 different webservices?  The reason why
>> I
>> > ask is the solution may not be in the transport itself but in a
>> handler.
>> >
>> > On 9/27/07, Yolanda Ward < [EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> You are right, you can not have two http transports but essentially
>> >> that's
>> >>
>> >> the functionality that I need.  I need to be able to handle 2
>> different
>> >> transports at the same time.  I think I have something fundamentally
>> >> wrong
>> >> but there is probably a solution out there.  I was looking for that
>> >> solution.
>> >>
>> >>
>> >> dreamryder wrote:
>> >> >
>> >> > I don't think you can have two http transports in the same config
>> file.
>> >> > Try commenting out:
>> >> >  > >> > pivot="java: org.apache.axis.transport.http.HTTPSender"/>
>> >> >
>> >> > And leave in your myownHandler.
>> >> > Debug it and see if the contructor even gets called?
>> >> > -jeff
>> >> >
>> >> >
>> >> > -Original Message-
>> >> > From: Yolanda Ward [mailto:[EMAIL PROTECTED]
>> >> > Sent: Thursday, September 27, 2007 4:14 PM
>> >> > To: axis-user@ws.apache.org
>> >> > Subject: Newbie need help with client-config.wsdd
>> >> >
>> >> >
>> >> > I'm new to Axis.  I'm using Axis 1.4.  I need to define a transport
>> on
>> >> > the
>> >> > client side.  My application is supporting multiple SOAP interfaces.
>> >> > When I
>> >> > call one set of SOAP interfaces, I want to call one handler and then
>> >> > when I
>> >> > call the other set of SOAP interfaces, I want to call a different
>> >> > handler.
>> >> >
>> >> > I knnow the configuration that I have below is wrong.  Does anyone
>> have
>> >> > any
>> >> > suggestions of how I can implement this?
>> >> >
>> >> > > >> > pivot="java:org.apache.axis.transport.http.HTTPSender"/>
>> >> > 
>> >> >
>> >> > 
>> >> >> >> >xmlns="http://xml.apache.org/axis/wsdd/ "
>> >> >   
>> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java
>> ">
>> >> >  
>> >> >   
>> >> >  > >> > value="false"/>
>> >> >
>> >> >  > >> > pivot="java: org.apache.axis.transport.http.HTTPSender"/>
>> >> >  
>> >> >  > >> > pivot="java:org.apache.axis.transport.ja

Re: Newbie need help with client-config.wsdd

2007-09-28 Thread Mike Krell
Ok, I may not understand completely what you are doing.  You say that you
are trying to call 2 different web services using one application and one
client-config.wsdd.  The transport doesn't do this.  The transport is how
the data moves across the wire.  I would look at the HTTP transport the same
way a browser communicates with a web server - it translates you app's
request into an HTTP request and sends it to the web server - in this case
an AxisServlet.  To get your app to call 2 different web services, you would
need to specify the endpoint url - something along the lines of this...

MyServiceOneLocator  locator1 = new MyServiceOneLocator  ();
URL wsURL = new URL();
MyWebService myWS = locator1.getMyWebservice(wsURL);

To call the second web service, the code is the same - just change the URL.

Hope this helps.

Mikek

On 9/28/07, Yolanda Ward <[EMAIL PROTECTED]> wrote:
>
>
> Yes, I'm trying to call 2 different webservices using one application and
> one
> client-config.wsdd file.
>
> Mike Krell-4 wrote:
> >
> > What is it that you are trying to accomplish by having 2 HTTP
> transports?
> > Is it just a matter of calling 2 different webservices?  The reason why
> I
> > ask is the solution may not be in the transport itself but in a handler.
> >
> > On 9/27/07, Yolanda Ward < [EMAIL PROTECTED]> wrote:
> >>
> >>
> >> You are right, you can not have two http transports but essentially
> >> that's
> >>
> >> the functionality that I need.  I need to be able to handle 2 different
> >> transports at the same time.  I think I have something fundamentally
> >> wrong
> >> but there is probably a solution out there.  I was looking for that
> >> solution.
> >>
> >>
> >> dreamryder wrote:
> >> >
> >> > I don't think you can have two http transports in the same config
> file.
> >> > Try commenting out:
> >> >   >> > pivot="java: org.apache.axis.transport.http.HTTPSender"/>
> >> >
> >> > And leave in your myownHandler.
> >> > Debug it and see if the contructor even gets called?
> >> > -jeff
> >> >
> >> >
> >> > -Original Message-
> >> > From: Yolanda Ward [mailto:[EMAIL PROTECTED]
> >> > Sent: Thursday, September 27, 2007 4:14 PM
> >> > To: axis-user@ws.apache.org
> >> > Subject: Newbie need help with client-config.wsdd
> >> >
> >> >
> >> > I'm new to Axis.  I'm using Axis 1.4.  I need to define a transport
> on
> >> > the
> >> > client side.  My application is supporting multiple SOAP interfaces.
> >> > When I
> >> > call one set of SOAP interfaces, I want to call one handler and then
> >> > when I
> >> > call the other set of SOAP interfaces, I want to call a different
> >> > handler.
> >> >
> >> > I knnow the configuration that I have below is wrong.  Does anyone
> have
> >> > any
> >> > suggestions of how I can implement this?
> >> >
> >> >  >> > pivot="java:org.apache.axis.transport.http.HTTPSender"/>
> >> > 
> >> >
> >> > 
> >> > >> >xmlns="http://xml.apache.org/axis/wsdd/ "
> >> >xmlns:java="http://xml.apache.org/axis/wsdd/providers/java
> ">
> >> >  
> >> >   
> >> >   >> > value="false"/>
> >> >
> >> >   >> > pivot="java: org.apache.axis.transport.http.HTTPSender"/>
> >> >  
> >> >   >> > pivot="java:org.apache.axis.transport.java.JavaSender "/>
> >> >   >> > pivot="java:org.apache.axis.transport.local.LocalSender"/>
> >> >
> >> > --
> >> > View this message in context:
> >> >
> >>
> http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741
> >> > .html#a12929350
> >> > 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]
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741.html#a1293
> >>
> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741.html#a12939568
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Newbie need help with client-config.wsdd

2007-09-28 Thread Yolanda Ward

Yes, I'm trying to call 2 different webservices using one application and one
client-config.wsdd file.

Mike Krell-4 wrote:
> 
> What is it that you are trying to accomplish by having 2 HTTP transports?
> Is it just a matter of calling 2 different webservices?  The reason why I
> ask is the solution may not be in the transport itself but in a handler.
> 
> On 9/27/07, Yolanda Ward < [EMAIL PROTECTED]> wrote:
>>
>>
>> You are right, you can not have two http transports but essentially
>> that's
>>
>> the functionality that I need.  I need to be able to handle 2 different
>> transports at the same time.  I think I have something fundamentally
>> wrong
>> but there is probably a solution out there.  I was looking for that
>> solution.
>>
>>
>> dreamryder wrote:
>> >
>> > I don't think you can have two http transports in the same config file.
>> > Try commenting out:
>> >  > > pivot="java: org.apache.axis.transport.http.HTTPSender"/>
>> >
>> > And leave in your myownHandler.
>> > Debug it and see if the contructor even gets called?
>> > -jeff
>> >
>> >
>> > -Original Message-
>> > From: Yolanda Ward [mailto:[EMAIL PROTECTED]
>> > Sent: Thursday, September 27, 2007 4:14 PM
>> > To: axis-user@ws.apache.org
>> > Subject: Newbie need help with client-config.wsdd
>> >
>> >
>> > I'm new to Axis.  I'm using Axis 1.4.  I need to define a transport on
>> > the
>> > client side.  My application is supporting multiple SOAP interfaces.
>> > When I
>> > call one set of SOAP interfaces, I want to call one handler and then
>> > when I
>> > call the other set of SOAP interfaces, I want to call a different
>> > handler.
>> >
>> > I knnow the configuration that I have below is wrong.  Does anyone have
>> > any
>> > suggestions of how I can implement this?
>> >
>> > > > pivot="java:org.apache.axis.transport.http.HTTPSender"/>
>> > 
>> >
>> > 
>> >> >xmlns="http://xml.apache.org/axis/wsdd/ "
>> >xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
>> >  
>> >   
>> >  > > value="false"/>
>> >
>> >  > > pivot="java: org.apache.axis.transport.http.HTTPSender"/>
>> >  
>> >  > > pivot="java:org.apache.axis.transport.java.JavaSender "/>
>> >  > > pivot="java:org.apache.axis.transport.local.LocalSender"/>
>> >
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741
>> > .html#a12929350
>> > 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]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741.html#a1293
>>
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741.html#a12939568
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Newbie need help with client-config.wsdd

2007-09-27 Thread Mike Krell
What is it that you are trying to accomplish by having 2 HTTP transports?
Is it just a matter of calling 2 different webservices?  The reason why I
ask is the solution may not be in the transport itself but in a handler.

On 9/27/07, Yolanda Ward < [EMAIL PROTECTED]> wrote:
>
>
> You are right, you can not have two http transports but essentially that's
>
> the functionality that I need.  I need to be able to handle 2 different
> transports at the same time.  I think I have something fundamentally wrong
> but there is probably a solution out there.  I was looking for that
> solution.
>
>
> dreamryder wrote:
> >
> > I don't think you can have two http transports in the same config file.
> > Try commenting out:
> >   > pivot="java: org.apache.axis.transport.http.HTTPSender"/>
> >
> > And leave in your myownHandler.
> > Debug it and see if the contructor even gets called?
> > -jeff
> >
> >
> > -Original Message-
> > From: Yolanda Ward [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 27, 2007 4:14 PM
> > To: axis-user@ws.apache.org
> > Subject: Newbie need help with client-config.wsdd
> >
> >
> > I'm new to Axis.  I'm using Axis 1.4.  I need to define a transport on
> > the
> > client side.  My application is supporting multiple SOAP interfaces.
> > When I
> > call one set of SOAP interfaces, I want to call one handler and then
> > when I
> > call the other set of SOAP interfaces, I want to call a different
> > handler.
> >
> > I knnow the configuration that I have below is wrong.  Does anyone have
> > any
> > suggestions of how I can implement this?
> >
> >  > pivot="java:org.apache.axis.transport.http.HTTPSender"/>
> > 
> >
> > 
> > >xmlns="http://xml.apache.org/axis/wsdd/ "
> >xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
> >  
> >   
> >   > value="false"/>
> >
> >   > pivot="java: org.apache.axis.transport.http.HTTPSender"/>
> >  
> >   > pivot="java:org.apache.axis.transport.java.JavaSender "/>
> >   > pivot="java:org.apache.axis.transport.local.LocalSender"/>
> >
> > --
> > View this message in context:
> > http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741
> > .html#a12929350
> > 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]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741.html#a1293
>
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: Newbie need help with client-config.wsdd

2007-09-27 Thread Walker, Jeff
You know,
I've never actually written a custom transport/Sender pair!
But, I assume you can define a different one other than http. Look at
the example config you posted. There is a "java" and a "local" transport
existing at the same time. I think you can make up another name and load
your transport's pivot for it. (I would try just one new transport
first, get it to deploy and get called properly, and bring in the 2nd
one later).

(In the downloadable examples for Axis 1.4, (I think you need to find
the src zip file for Axis 1.4) there is a custom transport example
project called, what else..transport tcp. I've never played with it but
it might help you out. They define a client-config.wsdd file as well).

You should even be able to reuse HTTPSender as well, and worry about
whether you need to write your own later. (First order of business is to
get Axis to deploy it all correctly, right?)
Good luck,
-jeff



-Original Message-
From: Yolanda Ward [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 4:46 PM
To: axis-user@ws.apache.org
Subject: RE: Newbie need help with client-config.wsdd


You are right, you can not have two http transports but essentially
that's
the functionality that I need.  I need to be able to handle 2 different
transports at the same time.  I think I have something fundamentally
wrong
but there is probably a solution out there.  I was looking for that
solution.


dreamryder wrote:
> 
> I don't think you can have two http transports in the same config
file.
> Try commenting out:
>   pivot="java:org.apache.axis.transport.http.HTTPSender"/>
> 
> And leave in your myownHandler.
> Debug it and see if the contructor even gets called?
> -jeff
> 
> 
> -Original Message-
> From: Yolanda Ward [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 27, 2007 4:14 PM
> To: axis-user@ws.apache.org
> Subject: Newbie need help with client-config.wsdd
> 
> 
> I'm new to Axis.  I'm using Axis 1.4.  I need to define a transport on
> the
> client side.  My application is supporting multiple SOAP interfaces.
> When I
> call one set of SOAP interfaces, I want to call one handler and then
> when I
> call the other set of SOAP interfaces, I want to call a different
> handler.  
> 
> I knnow the configuration that I have below is wrong.  Does anyone
have
> any
> suggestions of how I can implement this? 
> 
>  pivot="java:org.apache.axis.transport.http.HTTPSender"/>
> 
> 
> 
>xmlns="http://xml.apache.org/axis/wsdd/";
>
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
>  
>   
>   value="false"/>
>
>   pivot="java:org.apache.axis.transport.http.HTTPSender"/>
>  
>   pivot="java:org.apache.axis.transport.java.JavaSender"/>
>   pivot="java:org.apache.axis.transport.local.LocalSender"/>
>
> -- 
> View this message in context:
>
http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741
> .html#a12929350
> 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]
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741
.html#a1293
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: Newbie need help with client-config.wsdd

2007-09-27 Thread Yolanda Ward

You are right, you can not have two http transports but essentially that's
the functionality that I need.  I need to be able to handle 2 different
transports at the same time.  I think I have something fundamentally wrong
but there is probably a solution out there.  I was looking for that
solution.


dreamryder wrote:
> 
> I don't think you can have two http transports in the same config file.
> Try commenting out:
>   pivot="java:org.apache.axis.transport.http.HTTPSender"/>
> 
> And leave in your myownHandler.
> Debug it and see if the contructor even gets called?
> -jeff
> 
> 
> -Original Message-
> From: Yolanda Ward [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 27, 2007 4:14 PM
> To: axis-user@ws.apache.org
> Subject: Newbie need help with client-config.wsdd
> 
> 
> I'm new to Axis.  I'm using Axis 1.4.  I need to define a transport on
> the
> client side.  My application is supporting multiple SOAP interfaces.
> When I
> call one set of SOAP interfaces, I want to call one handler and then
> when I
> call the other set of SOAP interfaces, I want to call a different
> handler.  
> 
> I knnow the configuration that I have below is wrong.  Does anyone have
> any
> suggestions of how I can implement this? 
> 
>  pivot="java:org.apache.axis.transport.http.HTTPSender"/>
> 
> 
> 
>xmlns="http://xml.apache.org/axis/wsdd/";
>xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
>  
>   
>   value="false"/>
>
>   pivot="java:org.apache.axis.transport.http.HTTPSender"/>
>  
>   pivot="java:org.apache.axis.transport.java.JavaSender"/>
>   pivot="java:org.apache.axis.transport.local.LocalSender"/>
>
> -- 
> View this message in context:
> http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741
> .html#a12929350
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741.html#a1293
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: Newbie need help with client-config.wsdd

2007-09-27 Thread Walker, Jeff
I don't think you can have two http transports in the same config file.
Try commenting out:
 

And leave in your myownHandler.
Debug it and see if the contructor even gets called?
-jeff


-Original Message-
From: Yolanda Ward [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 4:14 PM
To: axis-user@ws.apache.org
Subject: Newbie need help with client-config.wsdd


I'm new to Axis.  I'm using Axis 1.4.  I need to define a transport on
the
client side.  My application is supporting multiple SOAP interfaces.
When I
call one set of SOAP interfaces, I want to call one handler and then
when I
call the other set of SOAP interfaces, I want to call a different
handler.  

I knnow the configuration that I have below is wrong.  Does anyone have
any
suggestions of how I can implement this? 





   http://xml.apache.org/axis/wsdd/";
   xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
   

   
 
 
 
 
 
   
-- 
View this message in context:
http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741
.html#a12929350
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]



Newbie need help with client-config.wsdd

2007-09-27 Thread Yolanda Ward

I'm new to Axis.  I'm using Axis 1.4.  I need to define a transport on the
client side.  My application is supporting multiple SOAP interfaces.  When I
call one set of SOAP interfaces, I want to call one handler and then when I
call the other set of SOAP interfaces, I want to call a different handler.  

I knnow the configuration that I have below is wrong.  Does anyone have any
suggestions of how I can implement this? 





   http://xml.apache.org/axis/wsdd/";
   xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
   

   
 
 
 
 
 
   
-- 
View this message in context: 
http://www.nabble.com/Newbie-need-help-with-client-config.wsdd-tf4530741.html#a12929350
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: WSDL generation using AXIS - newbie help

2007-09-19 Thread Dean Pullen
Thanks for the reply Anne, helped a lot. I've contacted them to sort it
out, they're aware of the 'problem'.

It's good to know I was thinking along the right lines, I just never
expected such a loosely typed spec to be allowed, kinda' defeats the
object.

For other people interested please refer to:

http://www.ibm.com/developerworks/webservices/library/ws-loosevstrong.ht
ml
http://www.ibm.com/developerworks/xml/library/ws-tip-xsdcaution.html

Dean.

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: 19 September 2007 00:01
To: axis-user@ws.apache.org
Subject: Re: WSDL generation using AXIS - newbie help

This WSDL is an example of how not to build an interoperable web
service in .NET. This service returns a .NET DataSet data type --
hence the schema included in the response message. I know of no
Java-based SOAP framework that can process one of these automatically.
Your best option is too toss the service back at the folks that
provided it and tell them to implement an interoperable service that
does not return proprietary data types like the DataSet. Your only
other option is to use the messaging API and process the response
message (and its embedded schema) using DOM.

Anne

On 9/18/07, Dean Pullen <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi all.
>
>
>
> Maybe I'm in need of further reading, maybe someone can point me in
the
> right direction.
>
>
>
> I've used Axis to generate client side stubs before, but I've never
worked
> with a) a .NET service and b) a service that wasn't our own, and I'm
having
> a few issues understanding what I need to do. Hopefully someone can
help.
>
>
>
> I have a WSDL definition from a .NET service, below is an edited
version (to
> allow for anonymity):
>
>
>
>  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/";
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
> xmlns:tns="http://tempuri.org//TPI";
> xmlns:s="http://www.w3.org/2001/XMLSchema";
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
> targetNamespace="http://tempuri.org//TPI";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
>
>   
>
>  targetNamespace="http://tempuri.org//TPI";>
>
>   
>
> 
>
>   
>
>  type="s:string" />
>
>  type="s:string" />
>
>   
>
> 
>
>   
>
>   
>
> 
>
>   
>
>  name="ConfirmRedirectionResult">
>
>   
>
> 
>
>   
>
>   
>
> 
>
>   
>
> 
>
>   
>
> 
>
>   
>
> 
>
>   
>
>   
>
>  element="tns:ConfirmRedirection" />
>
>   
>
>   
>
>  element="tns:ConfirmRedirectionResponse" />
>
>   
>
>   
>
> 
>
>   
>
>/>
>
> 
>
>   
>
>   
>
>  transport="http://schemas.xmlsoap.org/soap/http"; />
>
> 
>
>soapAction="http://tempuri.org//TPI/ConfirmRedirection";
> style="document" />
>
>   
>
> 
>
>   
>
>   
>
> 
>
>   
>
> 
>
>   
>
>   
>
>  transport="http://schemas.xmlsoap.org/soap/http"; />
>
> 
>
>soapAction="http://tempuri.org//TPI/ConfirmRedirection";
> style="document" />
>
>   
>
> 
>
>   
>
>   
>
> 
>
>   
>
> 
>
>   
>
>   
>
> 
>
>   http://www.domain.com/tpi.asmx"; />
>
> 
>
> 
>
>   http://www.domain.com/tpi.asmx"; />
>
> 
>
>   
>
> 
>
>
>
> This would allegedly provide a response like so:
>
>   
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:soap12="http://www.w3.org/2003/05/soap-envelope";>
>   
> http://tempuri.org//TPI";>
>   
>
> schemaxml
> 
>   
> 
>
>
>   Where 'schema' and 'xml' in this line:
> schemaxml
> are 'placeholders'.
>
> Now I'm expecting a lot of user data to come back in this response,
and I
> presume that it will come within these placeholders.
> If that's correct how do I generate a client stub using Axis that
represents
> this service?
>
> If I generate a stub using this WSDL as is, I only get the ability to
> perform:
> MessageElement[] messageElements = result.get_any();
>
> And not the specific getters for user name, user language etc etc that
> should appear in the response.
>
> I'm clearly missing something here, your thoughts and help would be
> appreciated.
>
>
> Dean.
>
>
>
>
>
>
>

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


Scanned by MailDefender - managed email security from intY -
www.maildefender.net

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



Re: WSDL generation using AXIS - newbie help

2007-09-18 Thread Anne Thomas Manes
This WSDL is an example of how not to build an interoperable web
service in .NET. This service returns a .NET DataSet data type --
hence the schema included in the response message. I know of no
Java-based SOAP framework that can process one of these automatically.
Your best option is too toss the service back at the folks that
provided it and tell them to implement an interoperable service that
does not return proprietary data types like the DataSet. Your only
other option is to use the messaging API and process the response
message (and its embedded schema) using DOM.

Anne

On 9/18/07, Dean Pullen <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi all.
>
>
>
> Maybe I'm in need of further reading, maybe someone can point me in the
> right direction.
>
>
>
> I've used Axis to generate client side stubs before, but I've never worked
> with a) a .NET service and b) a service that wasn't our own, and I'm having
> a few issues understanding what I need to do. Hopefully someone can help.
>
>
>
> I have a WSDL definition from a .NET service, below is an edited version (to
> allow for anonymity):
>
>
>
>  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/";
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
> xmlns:tns="http://tempuri.org//TPI";
> xmlns:s="http://www.w3.org/2001/XMLSchema";
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
> targetNamespace="http://tempuri.org//TPI";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
>
>   
>
>  targetNamespace="http://tempuri.org//TPI";>
>
>   
>
> 
>
>   
>
>  type="s:string" />
>
>  type="s:string" />
>
>   
>
> 
>
>   
>
>   
>
> 
>
>   
>
>  name="ConfirmRedirectionResult">
>
>   
>
> 
>
>   
>
>   
>
> 
>
>   
>
> 
>
>   
>
> 
>
>   
>
> 
>
>   
>
>   
>
>  element="tns:ConfirmRedirection" />
>
>   
>
>   
>
>  element="tns:ConfirmRedirectionResponse" />
>
>   
>
>   
>
> 
>
>   
>
>/>
>
> 
>
>   
>
>   
>
>  transport="http://schemas.xmlsoap.org/soap/http"; />
>
> 
>
>soapAction="http://tempuri.org//TPI/ConfirmRedirection";
> style="document" />
>
>   
>
> 
>
>   
>
>   
>
> 
>
>   
>
> 
>
>   
>
>   
>
>  transport="http://schemas.xmlsoap.org/soap/http"; />
>
> 
>
>soapAction="http://tempuri.org//TPI/ConfirmRedirection";
> style="document" />
>
>   
>
> 
>
>   
>
>   
>
> 
>
>   
>
> 
>
>   
>
>   
>
> 
>
>   http://www.domain.com/tpi.asmx"; />
>
> 
>
> 
>
>   http://www.domain.com/tpi.asmx"; />
>
> 
>
>   
>
> 
>
>
>
> This would allegedly provide a response like so:
>
>   
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:soap12="http://www.w3.org/2003/05/soap-envelope";>
>   
> http://tempuri.org//TPI";>
>   
>
> schemaxml
> 
>   
> 
>
>
>   Where 'schema' and 'xml' in this line:
> schemaxml
> are 'placeholders'.
>
> Now I'm expecting a lot of user data to come back in this response, and I
> presume that it will come within these placeholders.
> If that's correct how do I generate a client stub using Axis that represents
> this service?
>
> If I generate a stub using this WSDL as is, I only get the ability to
> perform:
> MessageElement[] messageElements = result.get_any();
>
> And not the specific getters for user name, user language etc etc that
> should appear in the response.
>
> I'm clearly missing something here, your thoughts and help would be
> appreciated.
>
>
> Dean.
>
>
>
>
>
>
>

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



WSDL generation using AXIS - newbie help

2007-09-18 Thread Dean Pullen
Hi all.

 

Maybe I'm in need of further reading, maybe someone can point me in the
right direction.

 

I've used Axis to generate client side stubs before, but I've never
worked with a) a .NET service and b) a service that wasn't our own, and
I'm having a few issues understanding what I need to do. Hopefully
someone can help.

 

I have a WSDL definition from a .NET service, below is an edited version
(to allow for anonymity):

 

http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:tns="http://tempuri.org//TPI";
xmlns:s="http://www.w3.org/2001/XMLSchema";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
targetNamespace="http://tempuri.org//TPI";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>

  

http://tempuri.org//TPI";>

  



  





  



  

  



  



  



  

  



  



  



  



  

  



  

  



  

  



  

  



  

  

http://schemas.xmlsoap.org/soap/http"; />



  http://tempuri.org//TPI/ConfirmRedirection"; style="document"
/>

  



  

  



  



  

  

http://schemas.xmlsoap.org/soap/http"; />



  http://tempuri.org//TPI/ConfirmRedirection"; style="document"
/>

  



  

  



  



  

  



  http://www.domain.com/tpi.asmx"; />





  http://www.domain.com/tpi.asmx"; />



  



 

This would allegedly provide a response like so:

 


http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope";>
  
http://tempuri.org//TPI";>
  
schemaxml

  


 

Where 'schema' and 'xml' in this line:
schemaxml are
'placeholders'.
 
Now I'm expecting a lot of user data to come back in this response, and
I presume that it will come within these placeholders.
If that's correct how do I generate a client stub using Axis that
represents this service?
 
If I generate a stub using this WSDL as is, I only get the ability to
perform:
MessageElement[] messageElements = result.get_any();
 
And not the specific getters for user name, user language etc etc that
should appear in the response.
 
I'm clearly missing something here, your thoughts and help would be
appreciated.
 
 
Dean.

 

 

 



Newbie: Installing Axis2 with Tomcat 5.5.7 for external use (public URL)

2007-09-11 Thread Domico, Kelly O
I apologize ahead of time. This may be a Linux or Tomcat question, but I
thought I would see if anyone else had experience with this. I don't
have much experience with Tomcat. I don't own the Linux machine that
Axis2 and Tomcat are installed on so I have to rely on the admin to
restart Tomcat and set up links, configurations, folders for me. 

I have been given a folder at: /applications/myexternalfolder . I have a
public URL: http://external.url.com that shows whatever HTML files, etc
is in that folder. In addition, there is a link in
/applications/Tomcat/webapps/myexternalfolder that points to
/applications/myexternalfolder .

I am able to install Axis2 with Tomcat 5.5.7 on a Linux machine and
access the services and list services page internally, say using this
internal URL: http://internal.url.com/axis2/services/MyService . At the
moment, the admin won't allow the axis2 folder in webapps to be exposed
externally for security reasons. 

Is it possible to access my services using the public URL (i.e.
http://external.url.com/axis2/services/MyService ) and if so, how can I
do this? I have tried creating a folder in
/applications/myexternalfolder/axis and linking that to the axis2 folder
in Tomcat/webapps but that didn't quite work as expected. I also tried
setting the 'hostname' and 'httpFrontendHostUrl' parameters but no
result.

Thanks,
Kelly



Re: Another Newbie Axis2 Question

2007-09-09 Thread Deepal jayasinghe
Tom Holmes Jr. wrote:
> Ok, I apologize this is a stupid question ... I may find the answer
> quickly, but I will ask anyway.
No problem.
>
> I am writing a data sync application ... I want this web Service to
> have three methods:   Push, Pull, Sync ...
> Each of these have separate input and output parameters.
> Ultimately, I want it to be ONE Web-Service with ONE WSDL.
fine.
>
> So, I started with three classes: Push, Pull, Sync

> Each of these three classes has input and output variables and I have
> proper getters/setters for all these variables that I want to expose.
>
> I am using the Axis2 Code Generator Plugin, and I can only grab one
> class (push, pull, sync) and turn that into a web-service.
No you have to write a single class adding the three method , and that
class will be your service class.

So in your class there should be a class like below;

public class MyService {
  public void push(PushParameter para){
  }

 public PullObject pull(String para){
  }

}
> I'm rusty at writing web-services since the last time I did it was
> with Tomcat/Axis (1) ... but now I should deprecate Axis(1) in my mind
> and properly use 2.
>
> Thanks for any help!
> Tom
>
> -
> 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]



Another Newbie Axis2 Question

2007-09-07 Thread Tom Holmes Jr.
Ok, I apologize this is a stupid question ... I may find the answer 
quickly, but I will ask anyway.


I am writing a data sync application ... I want this web Service to have 
three methods:   Push, Pull, Sync ...

Each of these have separate input and output parameters.
Ultimately, I want it to be ONE Web-Service with ONE WSDL.

So, I started with three classes: Push, Pull, Sync
Each of these three classes has input and output variables and I have 
proper getters/setters for all these variables that I want to expose.


I am using the Axis2 Code Generator Plugin, and I can only grab one 
class (push, pull, sync) and turn that into a web-service.
I'm rusty at writing web-services since the last time I did it was with 
Tomcat/Axis (1) ... but now I should deprecate Axis(1) in my mind and 
properly use 2.


Thanks for any help!
Tom

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



Re: Newbie with Axis2

2007-09-04 Thread Tom Holmes Jr.
My client is a very small state bureaucracy with no real technical staff 
and no real IT staff.   The easier I can make this for them the better.
I just thought that Tomcat or any other production level server would be 
overkill.   They will have one environment, Live, that's it.
There won't be any Dev, QA environments at all.  I mean this 
web-services just has to pull and push data from a single Access database.
More likely they will have one user at a time do a sync to the back-end 
Access database.


Thanks!
 Tom

Amila Suriarachchi wrote:



On 9/4/07, *Tom Holmes Jr.* <[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:


Hi Thilina, thanks for the information.

I checked with the client, and it seems there might 2-3 concurrent
users
at a time, certainly 12 would be the absolute most if all 12 employees
decided to hit the web-services at once.

So, I think Axis2, standalone would be the best bet.I'll certainly
look at SimpleAxisServer to start ... and then I'll add to it.


Is there any reason not to use Tomcat or any other production level 
server?
I belive for any production envirionmet it is better to deploy axis2 
inside such a web server.


Amila.

Thanks again for the help.
 Tom

Thilina Gunarathne wrote:
> Tom,
> It'll be a choice depending on your usage of the web service. A
> SimpleAxisServer started using axis2server.bat will work if you are
> not expecting many concurrent users to use the service. AFAIK
> SimpleAxisServer is still experimental and chokes on many concurrent
> requests. If you are expecting your web service to be heavily
used by
> a large set of users, then I would recommend you to go for
> Tomcat+Axis2.   Also you can start your work with
simpleAxisServer and
> then later you can move to the Tomcat depending on the situation.
>
> On a side note: Lately I've seen integrating a NIO transport with
> Axis2. I'm not sure whether the SimpleAxisServer uses it. You are
> better off with SimpleAxisServer if that is the case.
>
> Thanks,
> Thilina
>
> On 9/2/07, keith chapman <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
>
>> You don't need any other libraries to run Axis2 standalone
server. Tomcat is
>> not essential but if you wish you can use the war distribution
so that you
>> can use it with any application server.
>>
>> Thanks,
>> Keith.
>>
>>
>> On 9/2/07, Tom Holmes Jr. < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
>>
>>> I am a newbie with Axis2, and I have a number of questions,  
Before you

>>> rip off my head and show it to me.  let me explain myself first:
>>>
>>> 1) I have been developing for nearly 20 years, the last 10
have been in
>>> Java/J2EE
>>> 2) I have used Apache and Tomcat for years.
>>> 3) I have used Axis and developed Web-Services with Apache ...
I don't
>>> recall needing a Servlet container like Tomcat.
>>> 4) Yes I have been reading the documentation and googling, and
reading
>>> the mailing list archives of which I am now subscribed to.
>>>
>>> So, my situation is that I have a Windows laptop/desktop
system.I
>>> want to use Web-Services and certainly not IIS or other Microsoft
>>> Technologies.
>>> I want to use Axis2 which I download, extracted, and setup the
home
>>> directory with the environmental variables.   The JDK 1.6 was
previously
>>> installed and working.
>>> I ran the Axis2Server.Bat and it is running fine.Do I
still need a
>>> Servlet Container like Tomcat?   If I run Axis2 as a
stand-alone, do I
>>> need Apache at all.
>>> I don't really need a a full servlet container or full http
server.
>>> So, I imagine the standalone Axis2 should work for me to do
Web-Services.
>>> The documentation seemed to say I still needed to build the
war file and
>>> deploy it into web-apps, but I'm thinking that would only be
the case if
>>> I was Axis2 under some
>>> other App Server or Servlet Container.
>>>
>>> Ultimately ... I am gonna have a PDA using Microsoft
Technologies as a
>>> web-services client.  The PDA will send data to the
Web-Service under
>>>
>> Axis2.
>>
>>>

Re: Newbie with Axis2

2007-09-03 Thread Amila Suriarachchi
On 9/4/07, Tom Holmes Jr. <[EMAIL PROTECTED]> wrote:
>
> Hi Thilina, thanks for the information.
>
> I checked with the client, and it seems there might 2-3 concurrent users
> at a time, certainly 12 would be the absolute most if all 12 employees
> decided to hit the web-services at once.
>
> So, I think Axis2, standalone would be the best bet.I'll certainly
> look at SimpleAxisServer to start ... and then I'll add to it.


Is there any reason not to use Tomcat or any other production level server?
I belive for any production envirionmet it is better to deploy axis2 inside
such a web server.

Amila.

Thanks again for the help.
>  Tom
>
> Thilina Gunarathne wrote:
> > Tom,
> > It'll be a choice depending on your usage of the web service. A
> > SimpleAxisServer started using axis2server.bat will work if you are
> > not expecting many concurrent users to use the service. AFAIK
> > SimpleAxisServer is still experimental and chokes on many concurrent
> > requests. If you are expecting your web service to be heavily used by
> > a large set of users, then I would recommend you to go for
> > Tomcat+Axis2.   Also you can start your work with simpleAxisServer and
> > then later you can move to the Tomcat depending on the situation.
> >
> > On a side note: Lately I've seen integrating a NIO transport with
> > Axis2. I'm not sure whether the SimpleAxisServer uses it. You are
> > better off with SimpleAxisServer if that is the case.
> >
> > Thanks,
> > Thilina
> >
> > On 9/2/07, keith chapman <[EMAIL PROTECTED]> wrote:
> >
> >> You don't need any other libraries to run Axis2 standalone server.
> Tomcat is
> >> not essential but if you wish you can use the war distribution so that
> you
> >> can use it with any application server.
> >>
> >> Thanks,
> >> Keith.
> >>
> >>
> >> On 9/2/07, Tom Holmes Jr. <[EMAIL PROTECTED]> wrote:
> >>
> >>> I am a newbie with Axis2, and I have a number of questions,   Before
> you
> >>> rip off my head and show it to me.  let me explain myself first:
> >>>
> >>> 1) I have been developing for nearly 20 years, the last 10 have been
> in
> >>> Java/J2EE
> >>> 2) I have used Apache and Tomcat for years.
> >>> 3) I have used Axis and developed Web-Services with Apache ... I don't
> >>> recall needing a Servlet container like Tomcat.
> >>> 4) Yes I have been reading the documentation and googling, and reading
> >>> the mailing list archives of which I am now subscribed to.
> >>>
> >>> So, my situation is that I have a Windows laptop/desktop system.I
> >>> want to use Web-Services and certainly not IIS or other Microsoft
> >>> Technologies.
> >>> I want to use Axis2 which I download, extracted, and setup the home
> >>> directory with the environmental variables.   The JDK 1.6 was
> previously
> >>> installed and working.
> >>> I ran the Axis2Server.Bat and it is running fine.Do I still need a
> >>> Servlet Container like Tomcat?   If I run Axis2 as a stand-alone, do I
> >>> need Apache at all.
> >>> I don't really need a a full servlet container or full http server.
> >>> So, I imagine the standalone Axis2 should work for me to do
> Web-Services.
> >>> The documentation seemed to say I still needed to build the war file
> and
> >>> deploy it into web-apps, but I'm thinking that would only be the case
> if
> >>> I was Axis2 under some
> >>> other App Server or Servlet Container.
> >>>
> >>> Ultimately ... I am gonna have a PDA using Microsoft Technologies as a
> >>> web-services client.  The PDA will send data to the Web-Service under
> >>>
> >> Axis2.
> >>
> >>> The Web-Services I hope to deploy to Axis2 will be written in Java
> since
> >>> that is what I know.   The Web-Service (written  in Java) will then
> open
> >>> to an
> >>> Access database to read/write data and return information in the
> request
> >>> back to the PDA.
> >>>
> >>> Please point me to starting resources for Axis2 web-site, and again
> can
> >>> you answer some of those questions above.Thanks!
> >>>
> >>>Tom
> >>>
> >>>
> >>>
> >>>
> >> -
> >>
> >>> To unsubscribe, e-mail:
> >>>
> >> [EMAIL PROTECTED]
> >>
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>
> >> --
> >> Keith Chapman
> >> WSO2 Inc.
> >> Oxygen for Web Services Developers.
> >> http://wso2.org/
> >>
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


Re: Newbie with Axis2

2007-09-03 Thread Tom Holmes Jr.
Hi Thilina, thanks for the information.  

I checked with the client, and it seems there might 2-3 concurrent users 
at a time, certainly 12 would be the absolute most if all 12 employees 
decided to hit the web-services at once.


So, I think Axis2, standalone would be the best bet.I'll certainly 
look at SimpleAxisServer to start ... and then I'll add to it.


Thanks again for the help. 
Tom


Thilina Gunarathne wrote:

Tom,
It'll be a choice depending on your usage of the web service. A
SimpleAxisServer started using axis2server.bat will work if you are
not expecting many concurrent users to use the service. AFAIK
SimpleAxisServer is still experimental and chokes on many concurrent
requests. If you are expecting your web service to be heavily used by
a large set of users, then I would recommend you to go for
Tomcat+Axis2.   Also you can start your work with simpleAxisServer and
then later you can move to the Tomcat depending on the situation.

On a side note: Lately I've seen integrating a NIO transport with
Axis2. I'm not sure whether the SimpleAxisServer uses it. You are
better off with SimpleAxisServer if that is the case.

Thanks,
Thilina

On 9/2/07, keith chapman <[EMAIL PROTECTED]> wrote:
  

You don't need any other libraries to run Axis2 standalone server. Tomcat is
not essential but if you wish you can use the war distribution so that you
can use it with any application server.

Thanks,
Keith.


On 9/2/07, Tom Holmes Jr. <[EMAIL PROTECTED]> wrote:


I am a newbie with Axis2, and I have a number of questions,   Before you
rip off my head and show it to me.  let me explain myself first:

1) I have been developing for nearly 20 years, the last 10 have been in
Java/J2EE
2) I have used Apache and Tomcat for years.
3) I have used Axis and developed Web-Services with Apache ... I don't
recall needing a Servlet container like Tomcat.
4) Yes I have been reading the documentation and googling, and reading
the mailing list archives of which I am now subscribed to.

So, my situation is that I have a Windows laptop/desktop system.I
want to use Web-Services and certainly not IIS or other Microsoft
Technologies.
I want to use Axis2 which I download, extracted, and setup the home
directory with the environmental variables.   The JDK 1.6 was previously
installed and working.
I ran the Axis2Server.Bat and it is running fine.Do I still need a
Servlet Container like Tomcat?   If I run Axis2 as a stand-alone, do I
need Apache at all.
I don't really need a a full servlet container or full http server.
So, I imagine the standalone Axis2 should work for me to do Web-Services.
The documentation seemed to say I still needed to build the war file and
deploy it into web-apps, but I'm thinking that would only be the case if
I was Axis2 under some
other App Server or Servlet Container.

Ultimately ... I am gonna have a PDA using Microsoft Technologies as a
web-services client.  The PDA will send data to the Web-Service under
  

Axis2.


The Web-Services I hope to deploy to Axis2 will be written in Java since
that is what I know.   The Web-Service (written  in Java) will then open
to an
Access database to read/write data and return information in the request
back to the PDA.

Please point me to starting resources for Axis2 web-site, and again can
you answer some of those questions above.Thanks!

   Tom



  

-


To unsubscribe, e-mail:
  

[EMAIL PROTECTED]


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


  


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




  



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



Re: Newbie with Axis2

2007-09-02 Thread Tom Holmes Jr.
Thanks Keith.   This client is a Mosquito Control county organization, 
they don't need too much, just a simple App for web-services to sync 
data from the PDA to an Access database.
Tomcat may be way overkill for their needs, so a simple web-service to 
handle less than a dozen users might be just the thing for a standalone 
Axis2.
And the web-service will be written in Java ... the code on the PDA side 
will be written with Microsoft VB.NET as a Web-Service Client.


Thanks again for the help. 


  Tom

keith chapman wrote:
You don't need any other libraries to run Axis2 standalone server. 
Tomcat is not essential but if you wish you can use the war 
distribution so that you can use it with any application server.


Thanks,
Keith.

On 9/2/07, *Tom Holmes Jr.* <[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:


I am a newbie with Axis2, and I have a number of questions,  
Before you

rip off my head and show it to me.  let me explain myself first:

1) I have been developing for nearly 20 years, the last 10 have
been in
Java/J2EE
2) I have used Apache and Tomcat for years.
3) I have used Axis and developed Web-Services with Apache ... I don't
recall needing a Servlet container like Tomcat.
4) Yes I have been reading the documentation and googling, and
reading
the mailing list archives of which I am now subscribed to.

So, my situation is that I have a Windows laptop/desktop system.I
want to use Web-Services and certainly not IIS or other Microsoft
Technologies.
I want to use Axis2 which I download, extracted, and setup the home
directory with the environmental variables.   The JDK 1.6 was
previously
installed and working.
I ran the Axis2Server.Bat and it is running fine.Do I still
need a
Servlet Container like Tomcat?   If I run Axis2 as a stand-alone, do I
need Apache at all.
I don't really need a a full servlet container or full http server.
So, I imagine the standalone Axis2 should work for me to do
Web-Services.
The documentation seemed to say I still needed to build the war
file and
deploy it into web-apps, but I'm thinking that would only be the
case if
I was Axis2 under some
other App Server or Servlet Container.

Ultimately ... I am gonna have a PDA using Microsoft Technologies as a
web-services client.  The PDA will send data to the Web-Service
under Axis2.
The Web-Services I hope to deploy to Axis2 will be written in Java
since
that is what I know.   The Web-Service (written  in Java) will
then open
to an
Access database to read/write data and return information in the
request
back to the PDA.

Please point me to starting resources for Axis2 web-site, and
again can
you answer some of those questions above.Thanks!

   Tom


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




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


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.13.1/982 - Release Date: 8/31/2007 5:21 PM
  



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



Re: Newbie with Axis2

2007-09-02 Thread Thilina Gunarathne
Tom,
It'll be a choice depending on your usage of the web service. A
SimpleAxisServer started using axis2server.bat will work if you are
not expecting many concurrent users to use the service. AFAIK
SimpleAxisServer is still experimental and chokes on many concurrent
requests. If you are expecting your web service to be heavily used by
a large set of users, then I would recommend you to go for
Tomcat+Axis2.   Also you can start your work with simpleAxisServer and
then later you can move to the Tomcat depending on the situation.

On a side note: Lately I've seen integrating a NIO transport with
Axis2. I'm not sure whether the SimpleAxisServer uses it. You are
better off with SimpleAxisServer if that is the case.

Thanks,
Thilina

On 9/2/07, keith chapman <[EMAIL PROTECTED]> wrote:
> You don't need any other libraries to run Axis2 standalone server. Tomcat is
> not essential but if you wish you can use the war distribution so that you
> can use it with any application server.
>
> Thanks,
> Keith.
>
>
> On 9/2/07, Tom Holmes Jr. <[EMAIL PROTECTED]> wrote:
> > I am a newbie with Axis2, and I have a number of questions,   Before you
> > rip off my head and show it to me.  let me explain myself first:
> >
> > 1) I have been developing for nearly 20 years, the last 10 have been in
> > Java/J2EE
> > 2) I have used Apache and Tomcat for years.
> > 3) I have used Axis and developed Web-Services with Apache ... I don't
> > recall needing a Servlet container like Tomcat.
> > 4) Yes I have been reading the documentation and googling, and reading
> > the mailing list archives of which I am now subscribed to.
> >
> > So, my situation is that I have a Windows laptop/desktop system.I
> > want to use Web-Services and certainly not IIS or other Microsoft
> > Technologies.
> > I want to use Axis2 which I download, extracted, and setup the home
> > directory with the environmental variables.   The JDK 1.6 was previously
> > installed and working.
> > I ran the Axis2Server.Bat and it is running fine.Do I still need a
> > Servlet Container like Tomcat?   If I run Axis2 as a stand-alone, do I
> > need Apache at all.
> > I don't really need a a full servlet container or full http server.
> > So, I imagine the standalone Axis2 should work for me to do Web-Services.
> > The documentation seemed to say I still needed to build the war file and
> > deploy it into web-apps, but I'm thinking that would only be the case if
> > I was Axis2 under some
> > other App Server or Servlet Container.
> >
> > Ultimately ... I am gonna have a PDA using Microsoft Technologies as a
> > web-services client.  The PDA will send data to the Web-Service under
> Axis2.
> > The Web-Services I hope to deploy to Axis2 will be written in Java since
> > that is what I know.   The Web-Service (written  in Java) will then open
> > to an
> > Access database to read/write data and return information in the request
> > back to the PDA.
> >
> > Please point me to starting resources for Axis2 web-site, and again can
> > you answer some of those questions above.Thanks!
> >
> >Tom
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Keith Chapman
> WSO2 Inc.
> Oxygen for Web Services Developers.
> http://wso2.org/


-- 
Thilina Gunarathne  -  http://www.wso2.com - http://thilinag.blogspot.com

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



Re: Newbie with Axis2

2007-09-02 Thread keith chapman
You don't need any other libraries to run Axis2 standalone server. Tomcat is
not essential but if you wish you can use the war distribution so that you
can use it with any application server.

Thanks,
Keith.

On 9/2/07, Tom Holmes Jr. <[EMAIL PROTECTED]> wrote:
>
> I am a newbie with Axis2, and I have a number of questions,   Before you
> rip off my head and show it to me.  let me explain myself first:
>
> 1) I have been developing for nearly 20 years, the last 10 have been in
> Java/J2EE
> 2) I have used Apache and Tomcat for years.
> 3) I have used Axis and developed Web-Services with Apache ... I don't
> recall needing a Servlet container like Tomcat.
> 4) Yes I have been reading the documentation and googling, and reading
> the mailing list archives of which I am now subscribed to.
>
> So, my situation is that I have a Windows laptop/desktop system.I
> want to use Web-Services and certainly not IIS or other Microsoft
> Technologies.
> I want to use Axis2 which I download, extracted, and setup the home
> directory with the environmental variables.   The JDK 1.6 was previously
> installed and working.
> I ran the Axis2Server.Bat and it is running fine.Do I still need a
> Servlet Container like Tomcat?   If I run Axis2 as a stand-alone, do I
> need Apache at all.
> I don't really need a a full servlet container or full http server.
> So, I imagine the standalone Axis2 should work for me to do Web-Services.
> The documentation seemed to say I still needed to build the war file and
> deploy it into web-apps, but I'm thinking that would only be the case if
> I was Axis2 under some
> other App Server or Servlet Container.
>
> Ultimately ... I am gonna have a PDA using Microsoft Technologies as a
> web-services client.  The PDA will send data to the Web-Service under
> Axis2.
> The Web-Services I hope to deploy to Axis2 will be written in Java since
> that is what I know.   The Web-Service (written  in Java) will then open
> to an
> Access database to read/write data and return information in the request
> back to the PDA.
>
> Please point me to starting resources for Axis2 web-site, and again can
> you answer some of those questions above.Thanks!
>
>Tom
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Newbie with Axis2

2007-09-01 Thread Tom Holmes Jr.
I am a newbie with Axis2, and I have a number of questions,   Before you 
rip off my head and show it to me.  let me explain myself first:


1) I have been developing for nearly 20 years, the last 10 have been in 
Java/J2EE
2) I have used Apache and Tomcat for years. 
3) I have used Axis and developed Web-Services with Apache ... I don't 
recall needing a Servlet container like Tomcat.
4) Yes I have been reading the documentation and googling, and reading 
the mailing list archives of which I am now subscribed to.


So, my situation is that I have a Windows laptop/desktop system.I 
want to use Web-Services and certainly not IIS or other Microsoft 
Technologies.
I want to use Axis2 which I download, extracted, and setup the home 
directory with the environmental variables.   The JDK 1.6 was previously 
installed and working.
I ran the Axis2Server.Bat and it is running fine.Do I still need a 
Servlet Container like Tomcat?   If I run Axis2 as a stand-alone, do I 
need Apache at all.
I don't really need a a full servlet container or full http server.
So, I imagine the standalone Axis2 should work for me to do Web-Services.
The documentation seemed to say I still needed to build the war file and 
deploy it into web-apps, but I'm thinking that would only be the case if 
I was Axis2 under some

other App Server or Servlet Container.

Ultimately ... I am gonna have a PDA using Microsoft Technologies as a 
web-services client.  The PDA will send data to the Web-Service under Axis2.
The Web-Services I hope to deploy to Axis2 will be written in Java since 
that is what I know.   The Web-Service (written  in Java) will then open 
to an
Access database to read/write data and return information in the request 
back to the PDA.


Please point me to starting resources for Axis2 web-site, and again can 
you answer some of those questions above.Thanks!


  Tom


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



Interactive http get/set (newbie question)

2007-08-23 Thread Regivaldo Gomes Costa
Hi, 
 
How it will interact was he seeing http with a axis2 service, using only the 
http browser (Internet Explorer for example)?
 
Please, to exemplify me through the axis2 "Version" service.
 
I see that this proceeding is the form of testing the service without a java 
client.

Thank you.

Regivaldo Costa
Doe Sangue. Doe Vida. Visite -> http://www.doesanguecuritiba.org


  Flickr agora em português. Você clica, todo mundo vê.
http://www.flickr.com.br/

newbie question. need to be able to call to a web service which requires that a namespace is set in...

2007-08-12 Thread GAMERMV
... the soap-enveolope



http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:wsec="http:/blah-blah-blah">

..


...


 

I can add another namespace in the Header, and in the body but can't seem 
to be able to figure out how to add xmlns:wsec as an envelope attribute 
(using Axis generated classes, Axis Call class, etc.)

Can somebody point in the right direction?  Sorry if this is a trivial 
question, I am not really familiar with the Axis framework and I did spend 
a fair amount of time digging through documentation and googling this 
question...

Thanks,
Val

RE: Newbie question about using axis as webservice client

2007-08-03 Thread Merritt, Norris
Outstanding, thanks, I'll try it.

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 03, 2007 10:36 AM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: Re: Newbie question about using axis as webservice client

Norris,

FYI, We've added the following option in Axis2-1.3 RC3. would love
your input on if that is enough for your use case.

-Eosv (for ADB) - off strict validation.

thanks,
dims

On 8/3/07, Merritt, Norris <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Axis2 adb style clients can be made tolerant of new elements added to
a web
> service by modifying ADBBeanTemplate.xsl contained in
> axis2-adb-codegen-1.2.jar.
>
> This xsl is used to generate the Java code which pull-parses responses
from
> the web service. This generated code is what throws exceptions when it
> encounters unrecognized elements. It is fairly trivial to modify the
xsl to
> generate code which is tolerant of newly-added elements (i.e. just
silently
> consumes and discards them) instead of crashing. I have done this. To
some
> no doubt this is heresy, to others (myself included) it is worthwhile
> because it can be used to achieve looser coupling between the client
and
> service, and that is good. There are many business use cases where a
service
> is extended with some new elements which are not needed by existing
clients.
> The notion that every previously deployed client should have to be
> recompiled and redeployed just because the service was extended is
broken,
> IMHO.
>
>
>
>  
>
>
> From: Lahiru Sandakith [mailto:[EMAIL PROTECTED]
>  Sent: Friday, August 03, 2007 4:13 AM
>  To: axis-user@ws.apache.org
>  Subject: Re: Newbie question about using axis as webservice client
>
>
>
> Hi DelGurth,
>
>  As you say the webservice changed then the wsdl also should be
different,
> so IMO there is no option other than regenerating the client using
wsdl2java
> tool (via Eclipse), because its an interface level change.
>
>  Thanks
>
>  Lahiru Sandakith
>
>
> On 8/3/07, DelGurth <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>  I recently stated using axis as my web service client. I've used the
>  wsdl2java tool (via Eclipse) to generate the client code based on the
>  wsdl file of the service.
>
>  Now the web service changed, it contains a new field, and my client
>  application doesn't work anymore. Is there a way to make my client
>  ignore fields that are unknown to it?
>
>  I tried finding an answer in the client-side axis documentation, but
I
>  can't find it, unfortunately. That's why I end up here.
>
>  Regards,
>  Wessel van Norel
>
> -
>  To unsubscribe, e-mail:
> [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>  --
>  Thanks
>  Lahiru Sandakith
>
>  http://sandakith.wordpress.com/
>  GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01
9A0F


-- 
Davanum Srinivas :: http://davanum.wordpress.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]



  1   2   3   4   5   >