This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Problem with Oracle Webservice based on SOAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem with Oracle Webservice based on SOAP" Watch "Problem with Oracle Webservice based on SOAP" New topic
Author

Problem with Oracle Webservice based on SOAP

Brecht De Baets
Greenhorn

Joined: May 27, 2008
Posts: 1
Hello,

I have made some packages with Oracle Jdeveloper for some webservices.
Now I am trying the following code :

DECLARE
user_obj ora_java.jobject;
java_obj ora_java.jobject;

BEGIN

java_obj := XmlApiFrameworkServiceStub.New;

l_sessie := Xmlapiframeworkservicestub.Login(java_obj,'bdb','bdb');

user_obj := Xmlapiframeworkservicestub.Getuserinfo
(java_obj,l_sessie);

END;

The corresponding functions are the following :

FUNCTION login(
obj ORA_JAVA.JOBJECT,
a0 VARCHAR2,
a1 VARCHAR2) RETURN VARCHAR2 IS
BEGIN
args := JNI.CREATE_ARG_LIST(2);
JNI.ADD_STRING_ARG(args, a0);
JNI.ADD_STRING_ARG(args, a1);
RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'mypackage1/XmlApiFrameworkServiceStub', 'login', '(Ljava/lang/String;Ljava/lang/String Ljava/lang/String;', args);
END;

AND

FUNCTION getUserInfo(
obj ORA_JAVA.JOBJECT,
a0 VARCHAR2) RETURN ORA_JAVA.JOBJECT IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_STRING_ARG(args, a0);
RETURN JNI.CALL_OBJECT_METHOD(FALSE, obj, 'mypackage1/XmlApiFrameworkServiceStub', 'getUserInfo', '(Ljava/lang/String Lmypackage1/AlcUserInfo;', args);
END;

The Login function works. It gives back a string, but the other function (Getuserinfo) should give back a user defined type 'AlcUserInfo'.

When executing this function (Getuserinfo), I get the following exeption :

[SOAPException:
faultCode=SOAP-ENV:Client;
msg=No mapping found for 'http://schemas.xmlsoap.org/soap/encoding/:string'
using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.;
targetException=java.lang.IllegalArgumentException:
No mapping found for 'http://schemas.xmlsoap.org/soap/encoding/:string'
using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.]

How can I try to solve this error ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Oracle Webservice based on SOAP
 
Similar Threads
java soap proble with returning an array of DTO
Issue accessing restful service
problem with SOAP
Using java.lang.Arraylist object in WSAD WebServices
create a web sevice in jdevelolper using the existing Java file