How to develop web service using Intellij Idea 6.0
How to develop web services using Intellij Idea 6.x. A sample web service and service client is needed with full procedure. Thanx in advance.
Web service is technology not a tools that bundle with IDE.
For example you can't say how can I develope object orented program with Eclipse.
1- You should get some general info about SOAP, WSDL and Web sevice usage
2- Start to implmenet a simple Hello world web service and deploy it on application(web service) server
3- Write Client code and test it.
for step 2,3 Apache Axis(2) could be a good solution for developement or you can use JAX-WS for sun
Similar Messages
-
How to develop web services using a existing WSDL
I wrote a test web service program using a existing .NET HelloWorld WSDL.
After wsdeploying step, new WSDL was generated that was different from original one. There was a mismatch in messge part name between two WSDL.
When i ran a client program, it generated a following error;
java.rmi.ServerException: Internal Server Error (deserialization error : unexpected XML reader state. expected: END but found: START: input)
How can I get wsdeploy to use existing WSDL when it generates server artifacts internally?I created a web service client from the original WSDL using wscompile -gen:client.
original WSDL is:
<?xml version="1.0"?>
<wsdl:definitions name="HelloWorld" targetNamespace="http://soap/WebService/HelloWorld" xmlns:typens="http://soap/WebService/HelloWorld" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" >
<wsdl:types/>
<message name="SayHelloRequest">
<part name="input" type="xsd:string"/>
</message>
<message name="SayHelloResponse">
<part name="return" type="xsd:string"/>
</message>
<portType name="HelloWorldPort">
<operation name="sayHello">
<input message="typens:SayHelloRequest"/>
<output message="typens:SayHelloResponse"/>
</operation>
</portType>
<binding name="HelloWorldBinding" type="typens:HelloWorldPort">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="sayHello">
<soap:operation soapAction=""/>
<input>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://soap/WebService/HelloWorld"/>
</input>
<output>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://soap/WebService/HelloWorld"/>
</output>
</operation>
</binding>
<service name="HelloWorldService">
<port name="HelloWorldPort" binding="typens:HelloWorldBinding">
<soap:address location="http://localhost/ws/helloworld"/>
</port>
</service>
</wsdl:definitions> -
How to call web-service using only java code
Hello, how to call web-service using only java code. I can call it from BPM process or Web Dynpro Java Application, but if I need to call it from ejb component?
I'm found answer:
Java and SAP Portal blog: How to call web service from java code example -
How to develop web application using ejb3.0 with eclipse
Hi ,
I am new to ejb3.0 with eclipse. If any one familar that please guide me...
how to develop web application using ejb3.0 with eclipse.please help me... server jboss4.2.2. database mqsql5.0
Thanks,jsf_VWP5.5.1 wrote:
I am new to ejb3.0 with eclipse. If any one familar that please guide me...http://help.eclipse.org/help33/index.jsp -
How to develop web services in OSB using Eclipse OEPE
Hello,
We have some live web services developed in SOA ESB using JDeveloper.
We are now forced to migrate to OSB because of the reason that sometime next year ESB will be de-supported by Oracle.
I am looking for some good documentation which explains how to create web services in OSB using Eclipse. Please help.
I am installed Web logic + OEPE + OSB in my local machine already. All I need is to know how to start development.
Thanks,Hi,
You can start with this:
http://docs.oracle.com/cd/E17904_01/doc.1111/e15866/tasks.htm
Cheers,
Vlad -
How to call web service using J2SE 1.3?
Dear All,
i have developed a web service by jdev 10.1.3 (JAX-RPC with web service security
enabled).
i generate the ws proxy (jdev 10.1.3) and run it with wsclient_extended.jar (required JDK 1.4.1 or above??).
but one of my client say he has to use J2SE 1.3.x (as OS=AIX 4.3 that without J2SE
1.4.x ), could anyone tell me how can generate ws proxy (with supporting
library) for jdk 1.3.x?
if oracle don't have such library / tools, any third party tools / library available?
thank you.
lspI'm found answer:
Java and SAP Portal blog: How to call web service from java code example -
How to create Web Services Using EP7
Hi
I got a chance to work on Web Service using EP7 and i am new to web services
This is the first time i am working on Web Services
so please can you guide me where to start and how to start.
if possible reffer some links regarding web services.
regards
mmukeshHi Mukesh,
Please refer to the document
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60046fb9-ac5b-2910-08a6-b7b04b463c62
Thanks
Sarang -
How to Create web service using JMS with PUB/SUB pattern.
Hi All,
I need to expose web service using JMS with PUB/SUB pattern.
if you have any source for this.
I tried to use @WLJmsTransport annotation but unable to get it done.
I have configured all JMS server, topic, and connection factory.
Thanks.Hi, I am having web sample web service program which is simple one.
But I need to Modify this to JMS enable.
Can any one help me?
Thanks. -
I have to develop an application suing Web Services.
I'm not using ITS.
I already read the HelpOnline and the attachemnet of note 547847 (it seems usefull only for Was 620)
Do you know there is available some "how to do " document ?
thanks in advanceHi,
Check these excellent weblogs by Thomas:
/people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices
and
/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
Eddy -
Can any one show me how to call web service using soap lite mod perl client
Hi, Experts
SAP is new for me and now I need to develop a perl client using soap lite, I have read "HOWTO: SCRIPTING LANGUAGE SUPPORT FOR SAP SERVICES - PERL" but not quit understand that. Can some one show me a real perl client example?
I enclosed the wsdl file generated from SAP web service.
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions targetNamespace="urn:sap-com:document:sap:rfc:functions" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:sap-com:document:sap:rfc:functions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <wsdl:types>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:sap-com:document:sap:rfc:functions" targetNamespace="urn:sap-com:document:sap:rfc:functions" elementFormDefault="unqualified" attributeFormDefault="qualified">
- <xsd:element name="Z_RFC_WEBSERVICE">
- <xsd:complexType>
<xsd:sequence />
</xsd:complexType>
</xsd:element>
- <xsd:element name="Z_RFC_WEBSERVICEResponse">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element name="EV_STRING" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
- <wsdl:message name="Z_RFC_WEBSERVICE">
<wsdl:part name="parameters" element="tns:Z_RFC_WEBSERVICE" />
</wsdl:message>
- <wsdl:message name="Z_RFC_WEBSERVICEResponse">
<wsdl:part name="parameters" element="tns:Z_RFC_WEBSERVICEResponse" />
</wsdl:message>
- <wsdl:portType name="Z_RFC_WEBSERVICE">
- <wsdl:operation name="Z_RFC_WEBSERVICE">
<wsdl:input message="tns:Z_RFC_WEBSERVICE" />
<wsdl:output message="tns:Z_RFC_WEBSERVICEResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="Z_RFC_WEBSERVICESoapBinding" type="tns:Z_RFC_WEBSERVICE">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="Z_RFC_WEBSERVICE">
<soap:operation soapAction="" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="Z_RFC_WEBSERVICEService">
- <wsdl:port name="Z_RFC_WEBSERVICESoapBinding" binding="tns:Z_RFC_WEBSERVICESoapBinding">
<soap:address location="http://darkwind:9080/sap/bc/srt/rfc/sap/Z_RFC_WEBSERVICE?sap-client=800" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Thanks for your help!now I know how to call from perl tool,
#!/usr/bin/perl -wd
use SOAP::Lite;
use SOAP::Lite +trace;
my $client = SOAP::Lite->new();
$client->uri('urn:Z_RFC_WEBSERVICE');
$client->on_action(sub {return'""'});
$client->proxy('http://darkwind:9080/sap/bc/srt/rfc/sap/Z_RFC_WEBSERVICE?sap-client=800');
my $som = $client->Z_RFC_WEBSERVICE();
my $output = $som->result;
print $output "\n";
but I got "Operation not supported" error when executing
my $som = $client->Z_RFC_WEBSERVICE();
here is trace:
SOAP::Transport::new: ()
SOAP::Serializer::new: ()
SOAP::Deserializer::new: ()
SOAP::Parser::new: ()
SOAP::Lite::new: ()
SOAP::Transport::HTTP::Client::new: ()
SOAP::Lite::call: ()
SOAP::Serializer::envelope: ()
SOAP::Serializer::envelope: Z_RFC_WEBSERVICE testtypesZ_RFC_WEBSERVICE
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x93f14a4)
SOAP::Transport::HTTP::Client::send_receive: POST http://darkwind:9080/sap/bc/srt/rfc/sap/Z_RFC_WEBSERVICE?sap-client=800 HTTP/1.1
Accept: text/xml
Accept: multipart/*
Content-Length: 552
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><namesp1:Z_RFC_WEBSERVICE xmlns:namesp1="urn:Z_RFC_WEBSERVICE"><c-gensym3 xsi:type="xsd:string">testtypesZ_RFC_WEBSERVICE</c-gensym3></namesp1:Z_RFC_WEBSERVICE></SOAP-ENV:Body></SOAP-ENV:Envelope>
SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x93eb288)
SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal Server Error
Server: SAP Web Application Server (1.0;700)
Content-Length: 264
Content-Type: text/xml; charset=utf-8
Client-Date: Sat, 14 Feb 2009 19:33:50 GMT
Client-Peer: 146.225.80.176:9080
Client-Response-Num: 1
Sap-Srt-Id: 20090214/113349/v1.00_final_6.40/49958133C5E634E8E100000092E150B0
Set-Cookie: sap-usercontext=sap-client=800; path=/
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><soap-env:Fault><faultcode>soap-env:Client</faultcode><faultstring xml:lang="en">Operation not supported</faultstring></soap-env:Fault></soap-env:Body></soap-env:Envelope>
SOAP::Deserializer::deserialize: ()
SOAP::Parser::decode: ()
SOAP::SOM::new: ()
Can't use an undefined value as a symbol reference at ./sapClient.pl line 10.
SOAP::Lite::DESTROY: ()
SOAP::Deserializer::DESTROY: ()
SOAP::Parser::DESTROY: ()
SOAP::Transport::DESTROY: ()
SOAP::Transport::HTTP::Client::DESTROY: ()
SOAP::Serializer::DESTROY: ()
SOAP::Data::DESTROY: ()
SOAP::Data::DESTROY: ()
SOAP::Data::DESTROY: ()
SOAP::Data::DESTROY: ()
SOAP::Data::DESTROY: ()
SOAP::SOM::DESTROY: ()
Ran SAP Web Service Navigator Test 'Z_RFC_WEBSERVICE' OK
Can someone help?
Thanks! -
How to configure Web service using transaction SOAMANAGER?
Hi SDN,
I have followed this article to configure using transation SOAMANAGER.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20b723f8-a422-2c10-aca5-fe64eeda1ff2&overridelayout=true
but I have some issues about looking for ECC_PURCHASEORDER003QR in default_host/sap/bc/srt/xip/sap of above article.
I can not configure Web service and go to steps further.
The system is ECC 6.0 release 7.
How can be done?
Thanks,
Luu,Hi,
> but I have some issues about looking for ECC_PURCHASEORDER003QR
You mean you can't see this service in sicf or you have trouble locating this service in SICF. Can you specify what exactly your problem is?
Please check if you are on correct Ehp (Enhancement pack) required for this service. This service available with Ehp4.
To check enhancement pack goto System->status and check component information i.e. SAP_APPL release is 603 in my system which means I am on Ehp3.
Regards,
Gourav -
How to call Web Service using http?
Hello everyone,
I have created a web service in weblogic 8.1sp4. The web service is deployed and in the test page in the administration console I see that the wsdl is sth like
http://localhost:6101/SomeWebService/SomeWebService/SomeWebService?WSDL
How is it possible to call the web service operation (let's say someOperation) using http? The problem is that the client which will call the operation is not a java or .net one and is needs to do the call using a URL. I have tried sth like
http://localhost:6101/SomeWebService/SomeWebService/SomeWebService?string=somestring&operation.invoke=someOperation which is the URL used in the test page in the administration console and although it works, instead of getting the SOAP response back I get the whole html page returned by the test page.
Please help me,
Thanks,
YiannisHi Shreyas,
From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
So I recommend to achieve this goal programmatically.
More references:
https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
Thanks,
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
What is needed to develop web services with DI Server using C #?
Hi,
What is needed to develop web service using DI Service ad C#?
Does anyone have any examples?
thanks,
WillianLogin C# sample
u2018 Create Service WebReference
LoginWebRef.LoginService loginService = new LoginWebRef.LoginService();
// service command login call
string sessionID = login.Login(
"localhost",
"COM_OBS_AUT_TEST",
LoginWebRef.LoginDatabaseType.dst_MSSQL2005, true,
"sa", "xx",
"manager", "manager",
LoginWebRef.LoginLanguage.ln_English, true,
"localhost:30000");
Business Partners add C# sample.
// Create Service WebReference
BPWebRef.BusinessPartnersService bpsService = new
BPWebRef.BusinessPartnersService();
// MsgHeader class
BPWebRef.MsgHeader msgheader = new BPWebRef.MsgHeader();
msgheader.SessionID = DIServerSessionID;
msgheader.ServiceName = MsgHeaderServiceName.BusinessPartnersService;
msgheader.ServiceNameSpecified = true;
bpsService.MsgHeaderValue = msgHeader;
// fill business partner class
BPWebRef.BusinessPartner bp = new BPWebRef.BusinessPartner();
bp.CardCode = "MyBPCardCode";
u2026
// service command call
BPWebRef.BusinessPartnerParams bpParams = bpsService.Add(bp); -
What is the best practice for developing web service?
Hi All,
I'm a newbee to web services...
I was wondering what would be the best approach in developing a web service,
using tools or programmatic approach?
If I use WebLogic Workshop, am I tied to a vendor?
Is it possible for me to develop web services using workshop and deploy in
another app server..?
I would appreciate if somebody could give me a pointer to start.
I have already referred BEA's docs.
I'm still confused on a good starting point on the best approach to develop
protable web services.
Thanks in advance for any inputs.
K KK K-
You have a very valid point on the simplify or complicate matters. If you are
going for clean and not-so-time-centric code, then there are several different
programs and packages out there you can choose from.
Since you are specialized in J2EE, than the Sun package may be what you are looking
for. BEA's classes simplify much of the work you will be doing, but you could
emulate their classes or extend yours above the functions provided in theirs.
It all boils down to how much work are you willing to do.
If you are asking for more detailed, coding 'Design Patterns' to utilize, I would
wait for a few more posts from other folks as my work often requires me to utilize
the tools provided.
Sincerely,
Eric Ballou
"K K" <[email protected]> wrote:
Eric,
Thanks for the response.
I was also looking at Sun's WSDP 1.1, which is more programmatic approach.
Some how, I feel being a J2EE developer, I should go on the direction
of the
programmatic approach.
Using the tools could simplify or complicate things. Also, the Workshop
samples import all weblogic specific packages.
My code looks so dirty with many vendor specific packages being imported.
Could you give me your suggestions for a clean and neat approach?
I would personally prefer to avoid the quick and dirty approach.
Thanks again.
"Eric Ballou" <[email protected]> wrote in message
news:[email protected]...
K K-
The best approach in developing portable web services is knowing whatyou
are
planning on using them for as well as how much is willing to be spent,etc.
BEA's Workshop is portable to other frameworks, but the ease ofintegrating a
developed client or a developed server can very greatly. Even moreof an
issue
is migration from one framework to another. If you choose to developin
Workshop
and your company later deploys .Net solutions, some of your work mayhave
to be
redone unless the company is willing to keep portions of the 'old'system
around
until new versions of the service are available. However, Workshophas
several
ant tools available that would assist you in deploying to other appservers or
even a stand-alone application should you need cross framework abilities.
If you are just starting out in web services, http://www.webservices.org
is a
good place to start checking out vendors in the space.
Sincerely,
Eric Ballou
"K K" <[email protected]> wrote:
Hi All,
I'm a newbee to web services...
I was wondering what would be the best approach in developing a web
service,
using tools or programmatic approach?
If I use WebLogic Workshop, am I tied to a vendor?
Is it possible for me to develop web services using workshop and deploy
in
another app server..?
I would appreciate if somebody could give me a pointer to start.
I have already referred BEA's docs.
I'm still confused on a good starting point on the best approach todevelop
protable web services.
Thanks in advance for any inputs.
K K -
OC4J Shutting Down while Deploying Web Service using JDevloper
Hi..
I am developing Web Service using JDevloper. When ever I am deploying Web Services to OC4J server came with JDevloper bundle it automatically shutting down.
How to solve this ?
Regards,
Ajay SharamaHi..
This problem is solved now. By mistake when I am installing OC4J externally, I created environment variable "JAVA_HOME". As soon as I deleted this, problem is solved.
Regards,
Ajay
Maybe you are looking for
-
Install oracle8i + designer 6.0 + developer 6.0
I've problems with installing Personal Oracle 8.1.5 + Developer 6.0 + Designer 6.0 on a Windows 98 platform. Do you know a (the?) solution?
-
Scripting error when opening Interactive Form
Hi all, I'm experimenting with adobe interactive forms (in web dynpro), but things aren't going as expected. I'm getting scripting errors when clicking (in Internet Explorer) on a link that opens a view with an interactive form. Please see below for
-
OVM 2.1.2 does not recognize SATA 150 or SATA 300 disks with Intel ICH10R
OVM 2.1.2 does not recognize SATA 150 or SATA 300 disks. This same machine recognizes these disks with Enterprise Linux 5.2 x86-64. The motherboard uses the onboard SATA connectors: http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?C
-
Wonky Demo Output - Misaligned Text Boxes and Jumpy Mouse
Hello All, I'm using Captivate 3 to record a demo of an internal organization's web-based system. As I'm recording I immediately noticed that the mouse gets very jumpy and fades in and out whenever I try to scroll up/down or side to side. It takes it
-
Made new html page, I cannot find an pactual font size
Doing DW in a book, Lesson 1 made a html page "two col fixed header footer" There is a text size, an h1, h2 & <p> text size and it is 100% in the body, and 100% in the header, and after lesson #1, it is 90% in the main content, however of what? I we