Home » Developer & Programmer » JDeveloper, Java & XML » SoapException in using webservices
SoapException in using webservices [message #323289] Wed, 28 May 2008 01:38 Go to next message
bdb100
Messages: 1
Registered: May 2008
Junior Member
Hello,

I have made some packages with 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 ?
Re: SoapException in using webservices [message #335321 is a reply to message #323289] Mon, 21 July 2008 20:04 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
This should be in the JDeveloper forum.

David
Previous Topic: empty result
Next Topic: XML number conversion to Excel
Goto Forum:
  


Current Time: Sun Dec 11 04:39:29 CST 2016

Total time taken to generate the page: 0.12872 seconds