Java Client Web Service In Platform Eclipse

Hi All I have created a server Web Service called LoanCalcService in VS.NET 2005, the folder contains LoanInfo.asmx that when run creates the Web Service, WSDL. Which works good. Now i need to send a request to the Web Service server and get a response from the LoanCalcService that it provides. To do this i must create a client in another language. I am doing this in JAVA in the Eclipse platform. I have tested the WSDL with the web service explorer that comes with eclipse and the program works good. But when i run the Java code in Eclipse i get this Error HTTP Status 404 - /WebServiceProject/WEB-INF/classes/localhost/LoanCalcService/LoanInfo_asmx/LoanInfoLocator.java type Status report message /WebServiceProject/WEB-INF/classes/localhost/LoanCalcService/LoanInfo_asmx/LoanInfoLocator.java description The requested resource (/WebServiceProject/WEB-INF/classes/localhost/LoanCalcService/LoanInfo_asmx/LoanInfoLocator.java) is not available Can anyone tell me please what i am missing please. Thank You beforehand

You are a novice to Java and yet you expect to start out writing services?
Good luck with that*
*Trademark, 2006- yawmark, All Rights Reserved.

Similar Messages

Hello,
I'm desperately tryin' to get an external system to work together with XI 3.0.
The setup is quite simple:
The external system is nothing but a simple Java program sending SOAP-based requests to a webservice. It is based on AXIS and is running satisfyingly when connecting directly to an appropriate Tomcat/AXIS-based web service, see the following communication.
-- local request
POST /axis/VAPService.jws HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: 192.168.1.2:8080
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://localhost/SOAPRequest"
Content-Length: 422
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope 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">
<soapenv:Body>
<SOAPRequest soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAPDataIn xsi:type="xsd:string">890000001</SOAPDataIn>
</SOAPRequest>
</soapenv:Body>
</soapenv:Envelope>
-- local response
HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=DFD7A00A244C18A058FCB52A8321A167; Path=/axis
Content-Type: text/xml;charset=utf-8
Date: Mon, 23 Aug 2004 06:52:47 GMT
Server: Apache-Coyote/1.1
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope 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">
<soapenv:Body>
<SOAPRequestResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAPRequestReturn xsi:type="xsd:int">1</SOAPRequestReturn>
</SOAPRequestResponse>
</soapenv:Body>
</soapenv:Envelope>
Now I have designed and configured simple business scenarios with XI 3.0 (synchronous as well as asynchronous). The only response I get from XI when the Java client connects ist the following:
-- remote request
POST /sap/xi/engine?type=entry HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: <host>:<port>
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://soap.org/soap"
Content-Length: 424
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope 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">
<soapenv:Body>
<SOAPRequest soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAPDataIn xsi:type="xsd:string">890000001</SOAPDataIn>
</SOAPRequest>
</soapenv:Body>
</soapenv:Envelope>
-- remote response
HTTP/1.0 500 HTTP standard status code
content-type: text/xml
content-length: 1493
content-id: <[email protected]>
server: SAP Web Application Server (1.0;640)
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header>
</SOAP:Header>
<SOAP:Body>
<SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP:mustUnderstand="1">
<SOAP:faultcode>Client</SOAP:faultcode>
<SOAP:faultstring></SOAP:faultstring>
<SOAP:faultactor>http://sap.com/xi/XI/Message/30</SOAP:faultactor>
<SOAP:faultdetail>
<SAP:Error xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP:mustUnderstand="1">
<SAP:Category>XIProtocol</SAP:Category>
<SAP:Code area="PARSER">UNEXSPECTED_VALUE</SAP:Code>
<SAP:P1>Main/@versionMajor</SAP:P1>
<SAP:P2>000</SAP:P2>
<SAP:P3>003</SAP:P3>
<SAP:P4></SAP:P4>
<SAP:AdditionalText></SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace=""></SAP:ApplicationFaultMessage>
<SAP:Stack>XML tag Main/@versionMajor has the incorrect value 000. Value 003 expected
</SAP:Stack>
</SAP:Error>
</SOAP:faultdetail>
</SOAP:Fault>
</SOAP:Body>
</SOAP:Envelope>
I made sure the business service in the integration directory is named SOAPRequest and is using SOAP as the communication channel. As the adapter engine I chose the integration server, since it is the only option, although the SOAP adapter framework is installed (according to the SLD) and deactivated any options like header and attachment.
Upon facing the above response I also tried any kind of derivative with inserting the described tag/attribute/element versionMajor, but to no avail.
My questions are:
What do I have to do additionally to get the whole thing running, i.e. configure my external systems in the SLD, providing proxy settings?
Do I have to create web services within the Web AS (which provide some kind of facade to the XI engine using the proxy generation) and connect to these instead of directly addressing the integration engine (I'm using the URL http://<host>:<port>/sap/xi/engine?type=entry, but I also tried http://<host>:<port>/XISOAPAdapter/MessageServlet?channel=:SOAPRequest:SOAPIn, this led to a 404 not found error)?
What settings do I have to provide to see the messages the client is sending, when looking into the runtime workbench it seems as if there are no messages at all - at least from my client?
Hopefully somebody might help me out or least provide some information to get me going.
Thanks in advance.
Best regards,
T.Hrastnik

Hello Oliver,
all information I gathered so far derives from the online help for XI 3.0, to be found under http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm. There You'll find - in the last quarter of the navigation bar on the left side - sections describing the adapter engine alonside the SOAP adapter.
Additionally I went through almost all postings in this forum.
This alonside the mandatory trial-and-error approach (I did a lot of it up to date) led me to my current status, i.e. so far I haven't found any kind of (simple) tutorial or demo saying "If You want to establish a web service based connection via SOAP between external applications and XI first do this, then that ...", sadly enough :-(.
Hope that helps, any questions are always welcome, I'll try my best to answer them ;-).
Best regards,
Tomaz

Hi All, When calling BAPIs from a JAVA client, what are the pros/cons for making the call employing JCo vs web service technologies. I understand that using SOAP would play better into the SOA theme and that there are nice tools to generate a WSDL document from a BAPI. Aside from the obvious, are there any performance considerations and/or other major pros/cons to each Thanks, Mark

Hi Mark,
Have you got any information on this. If you have any information on this pls forward to me at <b>[email protected]</b> I am also having this confusion. My question is a bit deviating from your point. If we use XI when developing WDJs with WS, will it help in improving performance and maintenance.will it give any advantage if I use XI with BAPIs to connecto backend from WDJ apps. I got this confusion, becasue of a requirement to develop WDJ apps that will be accessed by 50,000 users. Somebody told client that use of XI willimprove performance.
Any help is greatful
Regards
Ravindra
Message was edited by:
Ravindra Babu Tanguturi

I'm new 2 web-services. I need to create 2-java clients(a game like chess) & communicate them through a java based web-service. I can create the web service.(using Netbeans getting started tutorial.only the basic stuff) when we create the 2-clients are those should be web-clients or are they should be normal java applications. (clients should be GUI based) ??

I'm new 2 web-services.
I need to create 2-java clients(a game like chess) & communicate them through a java based web-service.
I can create the web service.(using Netbeans getting started tutorial.only the basic stuff)
when we create the 2-clients are those should be web-clients or are they should be normal java
applications.
(clients should be GUI based)
??

My guess is that it is because .NET defaults to generating a document style interface whereas JDeveloper defaults to generating an RPC style interface. The end result is that JDeveloper wraps the document interface in something that looks document like - thus your client. To see how to handle this right now, check out this sample - you have to parse the XML:
http://otn.oracle.com/tech/webservices/htdocs/series/net/content.html
In the preview of JDeveloper 9.0.3 which is due quite soon - next few weeks roughly (crossing my fingers) - JDeveloper will wrap .NET document based Web services in a much more elegant wrapper - giving you exactly what you are looking for - a method called Validate rather than a vector of Elements.
What I don't understand in your sample, however, is that you have WSDL generated from JDeveloper versus WSDL generated from .NET. Did you also do an implementation of the validate method in Java too?
Mike.

Hi, I am trying to execute a code for web service related in eclipse IDE (Plug in environment). when i am trying to debug, It throws class not found exception in plugin environment and its not creating instance for Wsdlparser1. but it is executing fine in java environment. And the code is, public void testCaseCreation() { try{ Wsdlparser1 wsdlParser1 = new Wsdlparser1(sWsdlFilePath); wsdlParser1.createWSDLReader(sWsdlFilePath); GenerateTypeSystem gTypeSystem = new GenerateTypeSystem(sPath); gTypeSystem.createModule(); System.out.println("TypeSystem Created Successfully"); GenerateTestCase1 gTestCase = new GenerateTestCase1(wsdlParser1,sPath); gTestCase.createTestcases(); System.out.println("TestCase Created Successfully"); } catch (Exception e) { e.printStackTrace(); let me know how to proceed further.

service created in SOAMANAGER will not work in older patch level version where
WSADMIN/WSCONFIG. is available

I created an EJB web service and I've successfully deployed it in my Oracle App Server. Some of the methods work fine but others produce the ff error: org.apache.soap.SOAPException - java.lang.IllegalArgumentException: No Serializer found to serialize [classname] using encoding style [encoding]It seems that the objects specified as parameters in the web service methods exposed are the only ones that had stubs generated for them. Other objects I use, which are usually wrapped inside a Vector, did not have generated stubs. Example: public String loginUser(UserDTO userDTO) throws RemoteException, NamingException, SQLException; public String addItems (Vector vecItems) throws RemoteException, NamingException, SQLException; // where vecItems is a collection of ItemDTO objects In this scenario, stubs were generated for the UserDTO class, but not for the ItemDTO class. In effect, calling the addItems method resulted to the exception I mentioned above. I did a workaround wherein I declared a dummy method which accepted all the types of objects I needed as parameters so all the necessary stubs can be generated, but this fix doesn't feel like it's the proper solution to my problem. If anyone can help me, it would be greatly appreciated. Thanks!

Welcome!
Lately I have been trying to publish Java based web service through Integrated SOA Gateway. The documentation states that:
+"Custom interface definitions can be created for various interface types including custom interface definitions for XML Gateway Map, Business Event, PL/SQL, Concurrent Program, Business Service Object, Java (except for Java APIs for Forms subtype) and Composite Service for BPEL type."+ (Integrated SOA Gateway Developer's Guide Release 12.1, "Creating and Using Custom Integration Interfaces")
After familiarizing myself with $FND_TOP/bin/irep_parser.pl and $FND_TOP/bin/FNDLOAD tools, I have started coding my POJOs. Initially I have come up with three classes - request/response objects and service implementation. Service implementation has been annotated with "@rep:X" descriptors according to "Java Annotations" section of the documentation. While invoking $FND_TOP/bin/irep_parser.pl I have received errors about class resolution. My solution was to transform request and response types to static inner classes. This way I ended up with one *.java source file (see below).
* Sample ISG Service.
* @rep:scope public
* @rep:product AP
* @rep:displayname My Custom ISG Service.
public class MyService {
public static class Request {
private String id;
public void setId(String id) {
this.id = id;
public String getId() {
return id;
public static class Response {
private String data;
public void setData(String data) {
this.data = data;
public String getData() {
return data;
* Sample operation.
* @param request Request Object.
* @return Return Object.
* @rep:displayname Test operation.
* @rep:category BUSINESS_ENTITY SAMPLE_SERVICE
public MyService.Response testOperation(MyService.Request request) {
MyService.Response response = new MyService.Response();
response.setData("Some Data");
return response;
ILDT file has been successfully created and uploaded. However, I could not see the "Generate WSDL" button on Integrated Repository website. Is there any particular interface or superclass that my service implementation should extend? I have reviewed "PurchaseOrderSDO" example posted in the developer's guide (page 407), but I couldn't come up with a working solution. Could you provide me with more detailed tutorial/example? Which documentation sections should I read again?
After searching through forum, I have spotted $FND_TOP/bin/soagenerate.sh script, and thought that lack of "Generate WSDL" button was an EBS defect. After running the script, I have received an error:
Error in Service Generation.
ServiceGenerationError: Interface Type (JAVA) Interface SubType (null) is not supported.
oracle.apps.fnd.soa.util.SOAException: ServiceGenerationError: Interface Type (JAVA) Interface SubType (null) is not supported.
at oracle.apps.fnd.soa.provider.wsdl.ArtifactsFactory.getArtifactsGenerator(ArtifactsFactory.java:55)
at oracle.apps.fnd.soa.provider.wsdl.WSDLGenerator.generateServiceWSDL(WSDLGenerator.java:128)
at oracle.apps.fnd.soa.provider.wsdl.ServiceGenerator.generateSOAService(ServiceGenerator.java:75)
at oracle.apps.fnd.soa.provider.wsdl.ServiceGenerator.generateSingleService(ServiceGenerator.java:88)
at oracle.apps.fnd.soa.provider.wsdl.ServiceGenerator.main(ServiceGenerator.java:419)
I would be grateful for any suggestions. Has anyone published Java based web service through ISG?
Best regards,
Lukasz

I tried the following as per Oracle support and able to generate the wsdl though, but not invoke the webservices.
1. Applied the patch 8607523
2. Took the translator.jar file from the patch 8857799 and replaced the current translator.jar file
3. Deploy the adapters.
$FND_TOP/bin/txkrun.pl -script=CfgOC4JApp -applicationname=pcapps
-oc4jpass=welcome -runautoconfig=No

Hi, I want to create web service proxy in Eclipse. Can someone tell me what all plug ins are needed for it and what is the detail procedure for the same? Thanks in advance.

Proxy class is out of date now... proxy class only support stateful web service call... and stateful web service may became a big limitation in development.
Try to thinking about how to use stateless web service call, you may get an alternative solution.
Edited by: user13036981 on 2011-10-7 上午9:20

Instead of using Oracle warehouse builder GUI design and control center, may I use Java or Web services to access the functionality of warehouse builder. where can I find these Java or web services API document. Thanks

I think I can answser my own question by some investigation now. Javadoc is here:
http://download-west.oracle.com/docs/html/B12155_01/index.html
but looks like this never been metioned. does it means code to Java API is not recommanded?
also, still not able to find any tutorial about using this APIs except javadoc

Hi All, I am trying out a simple java based web service creation exercise using Jdeveloper 10.1.3.3.0.3 and JAXB 1.0. Here is what I am trying to do. 1. I have a XSD file called Status.xsd, which has three complex types in it. 2. Using Jdeveloper Tools --> JAXB Compilation, I have created Jaxb classes for the above XSD files. For each of the complex type the jaxb class generator generated on IMPL clas and one abstract class. 3. Now I have created one simple java class called Class1.java and created one method that takes the StatusImpl as input and as output for that method. Here is the code for Class1.java public class Class1 { public Class1() { public StatusImpl getstatus (StatusImpl in) { StatusImpl out; out = in; return out; 4. Now, I trying to create a web service for this java class from jedeveloper. I have right clicked this class and went thru the wizard Create J2EE web services. 5. At the end, the web service project got created successfully and I am trying to run this project from jdeveloper. When I run this project, I am getting the following kind of error message in the browser It looks like when the runtime deployment classes are trying to instantiate the abstract classes instead of the impl class. and for all the complex types they trow that error and the web service could not be even invoked. What could be the issue? Is the jaxb based web services supported with jdeveloper 10g? Thanks, Renga

Hi All,
I am trying out a simple java based web service creation exercise using Jdeveloper 10.1.3.3.0.3 and JAXB 1.0. Here is what I am trying to do.
1. I have a XSD file called Status.xsd, which has three complex types in it.
2. Using Jdeveloper Tools --> JAXB Compilation, I have created Jaxb classes for the above XSD files. For each of the complex type the jaxb class generator generated on IMPL clas and one abstract class.
3. Now I have created one simple java class called Class1.java and created one method that takes the StatusImpl as input and as output for that method. Here is the code for Class1.java
public class Class1 {
public Class1() {
public StatusImpl getstatus (StatusImpl in) {
StatusImpl out;
out = in;
return out;
4. Now, I trying to create a web service for this java class from jedeveloper. I have right clicked this class and went thru the wizard Create J2EE web services.
5. At the end, the web service project got created successfully and I am trying to run this project from jdeveloper. When I run this project, I am getting the following kind of error message in the browser
It looks like when the runtime deployment classes are trying to instantiate the abstract classes instead of the impl class. and for all the complex types they trow that error and the web service could not be even invoked.
What could be the issue? Is the jaxb based web services supported with jdeveloper 10g?
Thanks,
Renga

Hi All I am a beginner in Java. I am working on a web service project. Which is to be client/server. Thus being the Client in Eciplse environment and coding in JAVA. The Server is in VS.NET web service. The client sends a request to the server and the server responds. I have created a server based Web Service in VS.NET which is called LoanCalcService and the files that are present are LoanInfo.asmx and Service.vb. When i run the server in VS.NET it creates a Web Service document called a WSDL. I have parsed the WSDL document through Apache Server in Eclipse platform using the Web Service Client. But i understand that i must write about 4 or 5 lines of JAVA code to Call an Instance of the WSDL document to be able to run this in Eclipse to create the Loan Calculator that i have created in VS.NET. I am enquiring to see if anyone can point me in the right direction. PS. Sry about the quick entry earlier

You are a novice to Java and yet you expect to start out writing services?
Good luck with that*
*Trademark, 2006- yawmark, All Rights Reserved.

Hi All I am a beginner in Java. I am working on a web service project client/server to which i have created a webservice server in VB.NET and have parsed the WSDL through the Apache server in Eclipse which generates the JAVA code but the project in Eclipse requires that i call an instance of this Web Service, to which i must pass the parameters. Please could you HELP

Hi All
I am a beginner in Java.
I am working on a web service project.
Which is to be client/server.
The client sends a request to the server and the server responds.
I have created a server based Web Service in VS.NET which is called LoanCalcService and the files that are present are LoanInfo.asmx and Service.vb.
When i run the server in VS.NET it creates a Web Service document called a WSDL.
I have parsed the WSDL document through Apache Server in Eclipse platform using the Web Service Client.
But i understand that i must write about 4 or 5 lines of JAVA code to Call an Instance of the WSDL document to be able to run this in Eclipse to create the Loan Calculator that i have created in VS.NET. I am enquiring to see if anyone can point me in the right direction.
PS. Sry about the quick entry earlier
Edited by: learner17 on Nov 7, 2007 7:29 AM

Working on a project at present and require to use JAVA as the client to consume XML from the Server to which i have coded in VB.NET. I have never used JAVA before and i am asking if anyone can point me in the right direction for this or give me an example of Client code in JAVA that consumes XML from the Server VB.net. This is cross platform web service that i am working on which must include the following Client/Server one in say for instance JAVA client and VB.NET server which must consume the same text for instance XML, and then display the XML. Thank You Beforehand I am a Beginner. But i am willing to learn. There will be a chocolate bar in it for anyone who can point me in the correct direction. Got 3 days to complete, HELP

Any particular flavor of XML? (e.g., SOAP)

Maybe you are looking for

Hello, I want to know if it is possible to install windows 7 on a thunderbolt external hard. I have a limited space on my harddrive and want to have windows 7 operate and store data on the thunderbolt drive. Anyone know if this works or if its possib

Our IT department has adopted a policy that requires a standard look and feel for all error pages encountered in any web application. To this end I need to be able to modify the error page that shows up on the browser when an unexpected error is enco

I click on the Safari logo, page opens but then quickly after closes and the message "Safari Web Content quit unexpectedly" opens with a whole load of computer jargon below. Any ideas how to fix? Thanks