Error with WSDL URL to point to Proxy in Oracle Service Bus
956386Aug 17 2012 — edited Aug 22 2012Hello everyone,
First I introduce the context and then I explain my problem. I expect it will be pretty clear.
I'm trying to learn SOASuite. I'm trying to follow a the tutorial of the following book : "Getting started with Oracle SOA Suite 11g R1 : a Hands-On Tutorial".
I've installed the SOA Suite 11.1.1.6 on Windows XP.
Here there is a link to the book's page : http://www.oracle.com/technetwork/middleware/soasuite/11gthebook-101473.html . On this page, there is a link to a zip archive containing the used sources of the book. In the folder "solutions", there is one folder per chapter with the solution project for this chapter.
I've done the tutorial until chapter 10 and I have a problem with the end of the chapter 11 which deals with OSB. So everything run until chapter 10 (included).
The application that the tutorial 'build' is a purchase order-processing application. The following link gives access to the book in google books : http://books.google.be/books?id=ZP9PClWesncC&printsec=frontcover&dq=Getting+Started+With+Oracle+SOA+Suite+11g+R1+%E2%80%93+A+Hands-On+Tutorial&source=bl&ots=gr8rTsRfHv&sig=Dcnu6pfY4JrEjuDrLYcgHwW--H4&hl=fr&sa=X&ei=AzcuUPX5C42KhQfgxIGQBQ&ved=0CD0Q6AEwAQ#v=onepage&q=Getting%20Started%20With%20Oracle%20SOA%20Suite%2011g%20R1%20%E2%80%93%20A%20Hands-On%20Tutorial&f=false
In chapter 3, the tutorial scenario is explained and there is an overview of the tutorial chapters.
Now, I will explain my problem. At some moment in my application, I must call from my POProcessing application the credit validation service (by using OSB). For doing this, in Oracle Business Bus, I registered the credit card validation service as a Business Service. Then I created a Proxy Service. Till then, no problem.
The Project is called "Credit Services", the proxy folder "ProxyServices" and the service name is "ValidateCredit" with type "WSDL Service". I imported a WSDL with resource name "ValidateCredit-wsdl". This WSDL is here linked with the ValidateCredit service.
After the configuration (Business service, proxy service, message flow) and after having tested this configuration, the next step is to change the reference link of the service "getCreditCardStatus" in jDeveloper, in order to invoke the virtualized service from OSB. getCreditCardStatus is the name of the web service in the "composite.xml" which is bound to the credit validation service.
So, in JDeveloper, I open the "composite.xml" file in the POProcessing project and I change the reference of the getCreditCardStatus by giving the new WSDL url (in Proxy).
The problem concerns the WSDL URL.
In the configuration of the Proxy Service, the informed Endpoint URI is : /Credit_Services/ProxyServices/ValidateCredit
The server OSB is on localhost, port 7001.
When I enter the following WSDL URL : http://localhost:7001/Credit_Services/ProxyServices/ValidateCredit?WSDL, jdevelopper complains : "error while reading wsdl file http://localhost:7001/Credit_Services/ProxyServices/ValidateCredit?WSDL. Exception : WSDLException: faultcode=OTHER_ERROR : Failed to read WSDL from http://localhost:7001/Credit_Services/ProxyServices/ValidateCredit?WSDL : WSDL not found".
When I enter the same link into my browser, I obtain a 'Error 404-- not found'...
Could you help me please? Any idea is welcome.
I've already tried to restart servers, to change a little the url, to delete the space in the name "Credit Services".... When I do the test in OSB, everything is fine and the endpoint URI is always /Credit_Services/ProxyServices/ValidateCredit.
I also remarked that in Administration console (of WebLogic Domain), in Deployment/Monitoring/WebApplications, there is one line with context root "/Credit_Services/ProxyServices/ValidateCredit" but the state is empty (opposite to the others with an "Active" state). Even so, the checkbox "State" in "Operational Settings" of the Proxy Service in OSB console is well selected.
Furthemore, the WSDL URL I provided when I have imported the WSDL in OSB, is correct (and works in a browser). When I look over the OSB console, the WSDL is well imported and all seems well configured.
once again, any idea is welcome :)
Thanks in advance,
Sophie
Edited by: 953383 on Aug 17, 2012 6:18 AM