You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by lv <lv...@live.cn> on 2013/04/11 10:59:47 UTC

Samples of REST web services

I am new to AXIS2 and just installed it. 
Can anyone give me some examples of the following:
1, how to create REST web services ?
2, how to create web services (soap)?

Thanks a lot!
 		 	   		  

RE: Where is WSDL

Posted by lv <lv...@live.cn>.
I try adding ?wsdl, but I get same error message.

Date: Thu, 11 Apr 2013 22:10:24 -0400
Subject: Re: Where is WSDL
From: jlmagc@gmail.com
To: java-user@axis.apache.org

have you tried appending ?wsdl ?


2013/4/11 lv <lv...@live.cn>




After running JAX-WS Web Services Ping and Echo Sample , how to get the WSDL?
When I enter localhost:8080/jaxws-samples/services/PingService.PingServicePort in the web browser, 
I get error : 

<faultstring>The endpoint reference (EPR) for the Operation not found is /jaxws-samples/services/PingService.PingServicePort and the WSA Action = null. If this EPR was previously reachable, please contact the server administrator.

</faultstring>
 		 	   		  

 		 	   		  

Re: Where is WSDL

Posted by JOSE L MARTINEZ-AVIAL <jl...@gmail.com>.
have you tried appending ?wsdl ?


2013/4/11 lv <lv...@live.cn>

> After running JAX-WS Web Services Ping and Echo Sample , how to get the
> WSDL?
> When I enter
> localhost:8080/jaxws-samples/services/PingService.PingServicePort in the
> web browser,
> I get error :
> <faultstring>The endpoint reference (EPR) for the Operation not found is
> /jaxws-samples/services/PingService.PingServicePort and the WSA Action =
> null. If this EPR was previously reachable, please contact the server
> administrator.
> </faultstring>
>

Where is WSDL

Posted by lv <lv...@live.cn>.
After running JAX-WS Web Services Ping and Echo Sample , how to get the WSDL?
When I enter localhost:8080/jaxws-samples/services/PingService.PingServicePort in the web browser, 
I get error : 
<faultstring>The endpoint reference (EPR) for the Operation not found is /jaxws-samples/services/PingService.PingServicePort and the WSA Action = null. If this EPR was previously reachable, please contact the server administrator.
</faultstring>
 		 	   		  

Re: Samples of REST web services

Posted by Shameera Rathnayaka <sh...@gmail.com>.
Hi ,

FYI, Axis2 JSON support has been improved[1][2][3]. Now it can process JSON
message as it is with ADB generated backend and address namespace problem
too. This new feature only available in axis2 trunk.


Thanks,
Shameera.

[1] https://issues.apache.org/jira/browse/AXIS2-5270
[2] https://issues.apache.org/jira/browse/AXIS2-5362
[3] https://issues.apache.org/jira/browse/AXIS2-5416



On Fri, Apr 12, 2013 at 4:01 PM, Martin Gainty <mg...@hotmail.com> wrote:

> JSON is implement with either Mapped or Badgerfish
> http://axis.apache.org/axis2/java/core/docs/json_support.html
>
> Nota Bene:
> when reconstructing your SOAP-1.1 Headers and Body be aware that
> mapped discards namespace and element-names
> you'll need to save both the namespace and element-name parts for each
> element  (in the event you need to reconstruct)
>
> In an enterprise situation a called web-service usually delivers SOAP
> elements and SOAP body in SOAP-ENVELOPE
> it is up to the caller (usually the application which is calling it) to
> handle further transformations to either HTML, PDF or JSON
>
> Consult with your architect beforehand..
>
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>  ------------------------------
> From: lv.123@live.cn
> To: java-user@axis.apache.org
>
> Subject: RE: Samples of REST web services
> Date: Fri, 12 Apr 2013 09:39:41 +0000
>
>
> Thank you. I can see web services.
> But I have other newbie questions about this tutorial.
> 1, How to send soap or xml message to this web services?
> 2, How to get json format results after using REST?
>
>  ------------------------------
> Date: Thu, 11 Apr 2013 05:23:44 -0700
> From: taniamm2002@yahoo.com
> Subject: Re: Samples of REST web services
> To: java-user@axis.apache.org
>
> of course :)
>
>   ------------------------------
> *From:* lv <lv...@live.cn>
> *To:* "java-user@axis.apache.org" <ja...@axis.apache.org>
> *Sent:* Thursday, April 11, 2013 3:12 PM
> *Subject:* RE: Samples of REST web services
>
>  Thank you. Can I do this tutorial in MyEclipse?
>
>  ------------------------------
> Date: Thu, 11 Apr 2013 03:05:49 -0700
> From: taniamm2002@yahoo.com
> Subject: Re: Samples of REST web services
> To: java-user@axis.apache.org
>
>  I hope this tutorial will help you for creating axis 2 web services in
> Eclipse.
>
>
>
> http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html
>
>   ------------------------------
> *From:* lv <lv...@live.cn>
> *To:* "java-user@axis.apache.org" <ja...@axis.apache.org>
> *Sent:* Thursday, April 11, 2013 11:59 AM
> *Subject:* Samples of REST web services
>
>  I am new to AXIS2 and just installed it.
> Can anyone give me some examples of the following:
> 1, how to create REST web services ?
> 2, how to create web services (soap)?
>
> Thanks a lot!
>
>
>
>
>


-- 
Best Regards,
Shameera Rathnayaka.

Blog : http://shameerarathnayaka.blogspot.com/

RE: Samples of REST web services

Posted by Martin Gainty <mg...@hotmail.com>.
JSON is implement with either Mapped or Badgerfish
http://axis.apache.org/axis2/java/core/docs/json_support.html
 
Nota Bene: 
when reconstructing your SOAP-1.1 Headers and Body be aware that mapped discards namespace and element-names
you'll need to save both the namespace and element-name parts for each element  (in the event you need to reconstruct)

In an enterprise situation a called web-service usually delivers SOAP elements and SOAP body in SOAP-ENVELOPE
it is up to the caller (usually the application which is calling it) to handle further transformations to either HTML, PDF or JSON

Consult with your architect beforehand..

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

  




From: lv.123@live.cn
To: java-user@axis.apache.org
Subject: RE: Samples of REST web services
Date: Fri, 12 Apr 2013 09:39:41 +0000




Thank you. I can see web services. 
But I have other newbie questions about this tutorial. 
1, How to send soap or xml message to this web services?
2, How to get json format results after using REST?





Date: Thu, 11 Apr 2013 05:23:44 -0700
From: taniamm2002@yahoo.com
Subject: Re: Samples of REST web services
To: java-user@axis.apache.org


of course :)








From: lv <lv...@live.cn>
To: "java-user@axis.apache.org" <ja...@axis.apache.org> 
Sent: Thursday, April 11, 2013 3:12 PM
Subject: RE: Samples of REST web services







Thank you. Can I do this tutorial in MyEclipse?





Date: Thu, 11 Apr 2013 03:05:49 -0700
From: taniamm2002@yahoo.com
Subject: Re: Samples of REST web services
To: java-user@axis.apache.org



I hope this tutorial will help you for creating axis 2 web services in Eclipse.




http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html






From: lv <lv...@live.cn>
To: "java-user@axis.apache.org" <ja...@axis.apache.org> 
Sent: Thursday, April 11, 2013 11:59 AM
Subject: Samples of REST web services







I am new to AXIS2 and just installed it. 
Can anyone give me some examples of the following:
1, how to create REST web services ?
2, how to create web services (soap)?

Thanks a lot!




 		 	   		  

RE: Samples of REST web services

Posted by lv <lv...@live.cn>.
Thank you. I can see web services. 
But I have other newbie questions about this tutorial. 
1, How to send soap or xml message to this web services?
2, How to get json format results after using REST?

Date: Thu, 11 Apr 2013 05:23:44 -0700
From: taniamm2002@yahoo.com
Subject: Re: Samples of REST web services
To: java-user@axis.apache.org

of course :)

        From: lv <lv...@live.cn>
 To: "java-user@axis.apache.org" <ja...@axis.apache.org> 
 Sent: Thursday, April 11, 2013 3:12 PM
 Subject: RE: Samples of REST web services
   




Thank you. Can I do this tutorial in MyEclipse?

Date: Thu, 11 Apr 2013 03:05:49 -0700
From: taniamm2002@yahoo.com
Subject: Re: Samples of REST web services
To: java-user@axis.apache.org

I hope this tutorial will help you for creating axis 2 web services in Eclipse.

http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html
        From: lv <lv...@live.cn>

 To: "java-user@axis.apache.org" <ja...@axis.apache.org> 
 Sent: Thursday, April 11, 2013 11:59 AM
 Subject: Samples of REST web services
   




I am new to AXIS2 and just installed it. 
Can anyone give me some examples of the following:
1, how to create REST web services ?
2, how to create web services (soap)?

Thanks a lot!
 		 	   		  


     		 	   		  


     		 	   		  

Re: Samples of REST web services

Posted by Tania Marinova <ta...@yahoo.com>.
of course :)




________________________________
 From: lv <lv...@live.cn>
To: "java-user@axis.apache.org" <ja...@axis.apache.org> 
Sent: Thursday, April 11, 2013 3:12 PM
Subject: RE: Samples of REST web services
 


 
Thank you. Can I do this tutorial in MyEclipse?



________________________________
Date: Thu, 11 Apr 2013 03:05:49 -0700
From: taniamm2002@yahoo.com
Subject: Re: Samples of REST web services
To: java-user@axis.apache.org


I hope this tutorial will help you for creating axis 2 web services in Eclipse.


http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html


________________________________
 From: lv <lv...@live.cn>
To: "java-user@axis.apache.org" <ja...@axis.apache.org> 
Sent: Thursday, April 11, 2013 11:59 AM
Subject: Samples of REST web services
 


 
I am new to AXIS2 and just installed it. 
Can anyone give me some examples of the following:
1, how to create REST web services ?
2, how to create web services (soap)?

Thanks a lot!

RE: Samples of REST web services

Posted by lv <lv...@live.cn>.
Thank you. Can I do this tutorial in MyEclipse?

Date: Thu, 11 Apr 2013 03:05:49 -0700
From: taniamm2002@yahoo.com
Subject: Re: Samples of REST web services
To: java-user@axis.apache.org

I hope this tutorial will help you for creating axis 2 web services in Eclipse.

http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html
        From: lv <lv...@live.cn>

 To: "java-user@axis.apache.org" <ja...@axis.apache.org> 
 Sent: Thursday, April 11, 2013 11:59 AM
 Subject: Samples of REST web services
   




I am new to AXIS2 and just installed it. 
Can anyone give me some examples of the following:
1, how to create REST web services ?
2, how to create web services (soap)?

Thanks a lot!
 		 	   		  


     		 	   		  

Re: Samples of REST web services

Posted by Tania Marinova <ta...@yahoo.com>.
I hope this tutorial will help you for creating axis 2 web services in Eclipse.


http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html


________________________________
 From: lv <lv...@live.cn>
To: "java-user@axis.apache.org" <ja...@axis.apache.org> 
Sent: Thursday, April 11, 2013 11:59 AM
Subject: Samples of REST web services
 


 
I am new to AXIS2 and just installed it. 
Can anyone give me some examples of the following:
1, how to create REST web services ?
2, how to create web services (soap)?

Thanks a lot!