SOAPException: failed to serialize ..
hi,
i'm trying to invoke webservices dynamically by using wsdl. i've followed closely to the example given in
http://edocs.bea.com/wls/docs70/webserv/client.html#1047081
but i got this error:
failed to invoke operation 'Translate' due to an error in the soap layer (SAAJ); nested exception is: Message[ failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://my.WebService/MyWebServices/']:Translate}]StackTrace[
javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://my.WebService/MyWebServices/']:Translate}
i realised that the difference in the wsdl given to me and the one in the sample is the operation style. The operation style of mywebservice is "document".
does it affect? i have tried setting the OPERATION_STYLE_PROPERTY to "document" but it still returned the same error.
does anyone know what is happening here?
thanks in advance.
hi,
i'm trying to invoke webservices dynamically by using wsdl. i've followed closely to the example given in
http://edocs.bea.com/wls/docs70/webserv/client.html#1047081
but i got this error:
failed to invoke operation 'Translate' due to an error in the soap layer (SAAJ); nested exception is: Message[ failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://my.WebService/MyWebServices/']:Translate}]StackTrace[
javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://my.WebService/MyWebServices/']:Translate}
i realised that the difference in the wsdl given to me and the one in the sample is the operation style. The operation style of mywebservice is "document".
does it affect? i have tried setting the OPERATION_STYLE_PROPERTY to "document" but it still returned the same error.
does anyone know what is happening here?
thanks in advance.
Similar Messages
-
I have generated my Web Service Client Control Class based on WSDL file provided by Web Service Provider using JAX-RPC in "Oracle Workshop for WebLogic version 10.3".
I am using Web Service Client Control class in WebLogic Portal portlet backing class to invoke Web Service. But while invoking Web Service, I am getting following error:
Caused by: java.rmi.RemoteException: Failed to invoke; nested exception is:
javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://xyz.com/abc/UpdateSR']:updateSRRequest}
Here is the code of my Portlet Backing class where I am using Service Control to invoke Web Service:
URL webServiceUrl = new URL(webServiceLocation);
ServiceFactory serviceFactory = ServiceFactory.newInstance();
QName qName = new QName(nameSpaceURI, serviceName);
Service siebelService = serviceFactory.createService(webServiceUrl, qName);
updateSRServiceControl siebelServiceProxy = (updateSRServiceControl)siebelService.getPort(qName, updateSRServiceControl.class);
UpdateSRResponse updateSRResponse = siebelServiceProxy.updateSR(updateSRRequest);
Please let me know if more information required.
I appreciate for help.
Thanks in advance.
Regards
NeerajI have generated my Web Service Client Control Class based on WSDL file provided by Web Service Provider using JAX-RPC in "Oracle Workshop for WebLogic version 10.3".
I am using Web Service Client Control class in WebLogic Portal portlet backing class to invoke Web Service. But while invoking Web Service, I am getting following error:
Caused by: java.rmi.RemoteException: Failed to invoke; nested exception is:
javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://xyz.com/abc/UpdateSR']:updateSRRequest}
Here is the code of my Portlet Backing class where I am using Service Control to invoke Web Service:
URL webServiceUrl = new URL(webServiceLocation);
ServiceFactory serviceFactory = ServiceFactory.newInstance();
QName qName = new QName(nameSpaceURI, serviceName);
Service siebelService = serviceFactory.createService(webServiceUrl, qName);
updateSRServiceControl siebelServiceProxy = (updateSRServiceControl)siebelService.getPort(qName, updateSRServiceControl.class);
UpdateSRResponse updateSRResponse = siebelServiceProxy.updateSR(updateSRRequest);
Please let me know if more information required.
I appreciate for help.
Thanks in advance.
Regards
Neeraj -
Weblogic sample doesn't work properly ( failed to serialize ) ?
Dear all,
I am running the sample dom.zip which doesn't run properly from http://dev2dev.bea.com/direct/webservice/index.html.
Server
=======================================================
package examples.dom;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
public final class EchoDom {
public Document echoDom(Document doc) {
System.out.println("The dom on the server is[");
weblogic.xml.babel.stream.DOMInputStream.printNode((Node) doc);
System.out.println("]");
return doc;
Client
=======================================================
package examples.dom;
import java.util.ArrayList;
import java.util.List;
import java.util.jar.JarFile;
import java.util.zip.ZipEntry;
import javax.xml.rpc.Call;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import javax.xml.namespace.QName;
import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.rpc.handler.HandlerRegistry;
import javax.xml.soap.SOAPConstants;
import weblogic.xml.stream.XMLInputStream;
import weblogic.xml.stream.XMLInputStreamFactory;
import weblogic.xml.schema.binding.TypeMapping;
import weblogic.xml.schema.binding.TypeMappingFactory;
import weblogic.utils.Debug;
import weblogic.apache.xerces.parsers.DOMParser;
import java.util.ArrayList;
import org.w3c.dom.Node;
import org.w3c.dom.Document;
import org.w3c.dom.Comment;
import org.w3c.dom.NodeList;
import org.w3c.dom.ProcessingInstruction;
import org.w3c.dom.NamedNodeMap;
import org.xml.sax.InputSource;
* @author Copyright (c) 2002 by BEA Systems. All Rights Reserved.
public final class Client {
public static Document getDocument(String filename)
throws Exception
DOMParser parser = new DOMParser();
parser.setFeature( "http://apache.org/xml/features/dom/defer-node-expansion",
false );
parser.setFeature( "http://xml.org/sax/features/validation",
false);
parser.setFeature( "http://xml.org/sax/features/namespaces",
true);
parser.setFeature( "http://apache.org/xml/features/validation/schema",
true);
parser.parse(weblogic.xml.babel.baseparser.SAXElementFactory.createInputSource(filename));
Document doc =parser.getDocument();
return doc;
public static void main( String[] args ) throws Exception{
Dom d = new Dom_Impl("http://localhost:7001/dom/EchoDomService?WSDL");
DomPort port = d.getdomPort();
Document request = getDocument(args[0]);
weblogic.xml.babel.stream.DOMInputStream.printNode((Node) request);
try {
Document newDoc = port.echoDom(request);
weblogic.xml.babel.stream.DOMInputStream.printNode((Node) newDoc);
} catch (javax.xml.rpc.JAXRPCException e) {
System.out.println(e.getLinkedCause());
e.getLinkedCause().printStackTrace();
Run-time Exception
=========================================================
C:\JDEV903\jdk\bin\javaw.exe -ojvm -classpath C:\MyStudy\java\WS3\classes;D:\bea\weblogic700\server\lib\webserviceclient+ssl.jar;D:\bea\weblogic700\server\lib\weblogic.jar;C:\JDEV903\jdev\lib\jdev-rt.jar;C:\JDEV903\soap\lib\soap.jar;C:\JDEV903\lib\xmlparserv2.jar;C:\JDEV903\jlib\javax-ssl-1_2.jar;C:\JDEV903\jlib\jssl-1_2.jar;C:\JDEV903\j2ee\home\lib\activation.jar;C:\JDEV903\j2ee\home\lib\mail.jar;C:\JDEV903\j2ee\home\lib\http_client.jar;C:\JDEV903\lib\xmlparserv2.jar;C:\JDEV903\lib\xmlcomp.jar;C:\MyStudy\java\1\dom\client.jar
-Dweblogic.webservice.verbose=true wl.client.wsServletClient
java.rmi.RemoteException: web service invoke failed; nested exception is:
javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
TypeMapping=TYPEMAPPING SIZE=0
javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
TypeMapping=TYPEMAPPING SIZE=0
void weblogic.webservice.core.DefaultPart.toXML(javax.xml.soap.SOAPElement, java.lang.Object,
weblogic.xml.schema.binding.SerializationContext, boolean, javax.xml.rpc.encoding.TypeMapping)
DefaultPart.java:260
void weblogic.webservice.core.DefaultMessage.toXML(javax.xml.soap.SOAPMessage,
java.lang.Object[])
DefaultMessage.java:455
java.lang.Object weblogic.webservice.core.DefaultOperation.invoke(java.util.Map,
java.lang.Object[], java.io.PrintStream)
DefaultOperation.java:403
java.lang.Object weblogic.webservice.core.DefaultOperation.invoke(java.util.Map,
java.lang.Object[])
DefaultOperation.java:359
java.lang.Object weblogic.webservice.core.rpc.StubImpl._invoke(java.lang.String,
java.util.Map)
StubImpl.java:225
java.lang.Object examples.dom.EchoDomServicePort_Stub.echoDom(java.lang.Object)
EchoDomServicePort_Stub.java:33
void wl.client.wsServletClient.main(java.lang.String[])
wsServletClient.java:78
Process exited with exit code 0.
Please help.
mindtermHello,
I just save the dom example a spin and it worked OK for me. RU using the latest service pack? Does the dom.ear build correctly and deploy on the server without errors? Can U see the webservice test page from http://localhost:7001/dom/EchoDomService ?
Thanks,
Bruce
mindterm wrote:
Dear all,
I am running the sample dom.zip which doesn't run properly from http://dev2dev.bea.com/direct/webservice/index.html.
Server
=======================================================
package examples.dom;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
public final class EchoDom {
public Document echoDom(Document doc) {
System.out.println("The dom on the server is[");
weblogic.xml.babel.stream.DOMInputStream.printNode((Node) doc);
System.out.println("]");
return doc;
Client
=======================================================
package examples.dom;
import java.util.ArrayList;
import java.util.List;
import java.util.jar.JarFile;
import java.util.zip.ZipEntry;
import javax.xml.rpc.Call;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import javax.xml.namespace.QName;
import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.rpc.handler.HandlerRegistry;
import javax.xml.soap.SOAPConstants;
import weblogic.xml.stream.XMLInputStream;
import weblogic.xml.stream.XMLInputStreamFactory;
import weblogic.xml.schema.binding.TypeMapping;
import weblogic.xml.schema.binding.TypeMappingFactory;
import weblogic.utils.Debug;
import weblogic.apache.xerces.parsers.DOMParser;
import java.util.ArrayList;
import org.w3c.dom.Node;
import org.w3c.dom.Document;
import org.w3c.dom.Comment;
import org.w3c.dom.NodeList;
import org.w3c.dom.ProcessingInstruction;
import org.w3c.dom.NamedNodeMap;
import org.xml.sax.InputSource;
* @author Copyright (c) 2002 by BEA Systems. All Rights Reserved.
public final class Client {
public static Document getDocument(String filename)
throws Exception
DOMParser parser = new DOMParser();
parser.setFeature( "http://apache.org/xml/features/dom/defer-node-expansion",
false );
parser.setFeature( "http://xml.org/sax/features/validation",
false);
parser.setFeature( "http://xml.org/sax/features/namespaces",
true);
parser.setFeature( "http://apache.org/xml/features/validation/schema",
true);
parser.parse(weblogic.xml.babel.baseparser.SAXElementFactory.createInputSource(filename));
Document doc =parser.getDocument();
return doc;
public static void main( String[] args ) throws Exception{
Dom d = new Dom_Impl("http://localhost:7001/dom/EchoDomService?WSDL");
DomPort port = d.getdomPort();
Document request = getDocument(args[0]);
weblogic.xml.babel.stream.DOMInputStream.printNode((Node) request);
try {
Document newDoc = port.echoDom(request);
weblogic.xml.babel.stream.DOMInputStream.printNode((Node) newDoc);
} catch (javax.xml.rpc.JAXRPCException e) {
System.out.println(e.getLinkedCause());
e.getLinkedCause().printStackTrace();
Run-time Exception
=========================================================
C:\JDEV903\jdk\bin\javaw.exe -ojvm -classpath C:\MyStudy\java\WS3\classes;D:\bea\weblogic700\server\lib\webserviceclient+ssl.jar;D:\bea\weblogic700\server\lib\weblogic.jar;C:\JDEV903\jdev\lib\jdev-rt.jar;C:\JDEV903\soap\lib\soap.jar;C:\JDEV903\lib\xmlparserv2.jar;C:\JDEV903\jlib\javax-ssl-1_2.jar;C:\JDEV903\jlib\jssl-1_2.jar;C:\JDEV903\j2ee\home\lib\activation.jar;C:\JDEV903\j2ee\home\lib\mail.jar;C:\JDEV903\j2ee\home\lib\http_client.jar;C:\JDEV903\lib\xmlparserv2.jar;C:\JDEV903\lib\xmlcomp.jar;C:\MyStudy\java\1\dom\client.jar
-Dweblogic.webservice.verbose=true wl.client.wsServletClient
java.rmi.RemoteException: web service invoke failed; nested exception is:
javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
TypeMapping=TYPEMAPPING SIZE=0
javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
TypeMapping=TYPEMAPPING SIZE=0
void weblogic.webservice.core.DefaultPart.toXML(javax.xml.soap.SOAPElement, java.lang.Object,
weblogic.xml.schema.binding.SerializationContext, boolean, javax.xml.rpc.encoding.TypeMapping)
DefaultPart.java:260
void weblogic.webservice.core.DefaultMessage.toXML(javax.xml.soap.SOAPMessage,
java.lang.Object[])
DefaultMessage.java:455
java.lang.Object weblogic.webservice.core.DefaultOperation.invoke(java.util.Map,
java.lang.Object[], java.io.PrintStream)
DefaultOperation.java:403
java.lang.Object weblogic.webservice.core.DefaultOperation.invoke(java.util.Map,
java.lang.Object[])
DefaultOperation.java:359
java.lang.Object weblogic.webservice.core.rpc.StubImpl._invoke(java.lang.String,
java.util.Map)
StubImpl.java:225
java.lang.Object examples.dom.EchoDomServicePort_Stub.echoDom(java.lang.Object)
EchoDomServicePort_Stub.java:33
void wl.client.wsServletClient.main(java.lang.String[])
wsServletClient.java:78
Process exited with exit code 0.
Please help.
mindterm -
Cluster shuts down when invocation service fails to serialize message
Hi,
I have a slight problem with the invocation service. When calling InvocationService.execute()/query() with an Invocable that's not serializable the cluster shuts down. A stacktrace containing a NotSerializableException is dumped, followed by a:
2005-12-16 10:42:45.623 Tangosol Coherence 3.1/321 <Error> (thread=main, member=2): PacketDispatcher: stopping cluster.
I have tested with 3.01/317, 3.1/321 and 3.1/325, they all behave the same. I admit that it's a bug if the invocation service is used this way but we cannot guarantee the absence of such a bug and the consequences are little too harsh for us. Have I missed something here, is there way to avoid this behaviour?
Thanks in advance,
ChrisHi Chris,
It is important to note that a fatal application error (like in your case, a non-serializable Invocable object) will affect the local member, at the most. The "cluster" being referred to is the local cluster object, which manages the membership of the local node in the actual cluster. After it is stopped like this, it will be automatically restarted during the next call to the Coherence API. We will improve the error message to be more clear.
The fix for COH-370 will make sure that such an exception shows up only on the calling thread, and does not affect the membership of the local node within the cluster.
Hopefully this fix will go into the next release after 3.1.
Regards,
Jason -
Hi All,
I am developing webservice application using Dynamic Proxy client. I am using Weblogic8.1 as my application server. All my services are generated using servicegen and clientgen task of Ant.
While using Dynamic Proxy client to invoke webservice, i am passing array of my POJO class. I am generating types using generateTypes option of the service task so that it generates serialized class automatically. But while passing this array object as an input parameter while invoking webservice, i am getting below error -
[java] General exception thrown
[java] java.lang.reflect.UndeclaredThrowableException
[java] at $Proxy0.lookup(Unknown Source)
[java] at cititru.scan.transScan.createGiService(transScan.java:47)
[java] at cititru.scan.transScan.main(transScan.java:22)
[java] Caused by: java.rmi.RemoteException: Failed to invoke; nested exception is:
[java] javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to serialize class [Lcititru.api.interdict.gi.ScannedTextData;weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class Lcititru.api.interdict.gi.ScannedTextData; class context=TypedClassContext{schemaType=['java:cititru.api.interdict.gi']:ArrayOfScannedTextData}
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[java] at weblogic.webservice.core.rpc.StubImpl.throwRemoteException(StubImpl.java:266)
[java] at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:251)
[java] ... 3 more
[java] Caused by: javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to serialize class [Lcititru.api.interdic
t.gi.ScannedTextData;weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class [Lcititru.api.interdict.gi.ScannedTextData; class context=TypedClassContext{schemaType=['java:cititru.api.interdict.gi']:ArrayOfScannedTextData}
[java] at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:331)
[java] at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:247)
[java] ... 3 more
In the above error message ScannedTextData is my POJO class which i am passing as an input parameter to webservice. Please suggest me what needs to be done to resolve the above issue.We'd need some more info to help you. Can you show us the code for your
sfsb? Are you sure you aren't doing something in ejbActivate to replace
the Serializable instance with a new class?
-- Rob
Kiran Raj wrote:
Hi All,
I have a problem while using a serialized class from within a stateful session
bean.
I am setting values to the serialized bean class by using one of the set methods
but at the very next statement when i am printing the values that is set is giving
null.
class myClass implements serializable {
private int counter=0;
public void setValues(){
counter++;
System.out.println(counter);
public int getValues(){
System.out.println(counter);
return counter;
class caller{
public void callingmethod(){
myClass x=new myClass();
x.setValues();
x.getValues();
when i call callingmethod, the output is
1
0
it is getting incremented and then getting reset to 0
I have 2 deployments, a development environment and a production environment.
It works fine in the development environment but fails in the production environment.
The xml files used are the same in both cases, so there is no configuration difference.
I am using welogic 6.1 wih service pack 3 and jdk 1.3.1
I suspect that this is related to serialization in weblogic but dont know exactly
how weblogic implements serialization.
if anybody has encountered this or knows the reasons it would be helpful to me.
Thanks,
Kiran. -
I was able to get my HTTPS web service to communicate with my clients, but now
when I try to connect to the web service (type=document), I get this error:
[java] 3) testQuoteStubs(com.arrow.arrowsoap.client.QuoteServiceClientTest)
junit.framework.AssertionFailedError: failed to serialize class java.lang.Objectweblogic.xml.schema.binding.SerializationException:
type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
TypeMapping=TYPE
MAPPING SIZE=3
[java] ENTRY 1:
[java] class: java.lang.Object
[java] xsd_type: ['https://www.xxx.com/QuoteService/']:lcl0:ProcessResponse
[java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
b957ea
[java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
3aff84
[java] ENTRY 2:
[java] class: java.lang.Object
[java] xsd_type: ['https://www.xxx.com/QuoteService/']:lcl0:Process
[java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
15d4de6
[java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
a53de4
[java] ENTRY 3:
[java] class: java.lang.Object
[java] xsd_type: ['http://www.w3.org/2001/XMLSchema']:xsd:anyType
[java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
827968
[java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
1f0b7d3
[java] at com.arrow.arrowsoap.client.QuoteServiceClientTest.testQuoteSt
ubs(QuoteServiceClientTest.java:98)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
Attached is the WSDL for the service.
The type-mapping file looks like:
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="https://www.xxx.com/QuoteService/"
class-name="java.lang.Object"
type="lcl0:ProcessResponse"
serializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="https://www.xxx.com/QuoteService/"
class-name="java.lang.Object"
type="lcl0:Process"
serializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry class-name="java.lang.Object"
type="xsd:anyType"
serializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>
Any ideas?? Am I missing something from my classpath?? I am running the tests
using the WL 8.1 ANT installation and using this as my WL classpath (my own jars
are added first in the path and are omitted here):
<pathelement path="${weblogic.home}/lib/webserviceclient.jar"/>
<pathelement path="${weblogic.home}/lib/weblogic_sp.jar"/>
<pathelement path="${weblogic.home}/lib/weblogic.jar"/>
Thanks
-- jake
[QuoteService.wsdl]Hi Karen,
My suggestion is to separate the issues (serialization failures and
SSL). Make sure your app works OK using http trasport. For SSL, RU
using the WLSSLAdapter for the client as described in the docs [1]? One
or 2way SSL? What version of WLS?
Thanks,
Bruce
[1]
http://edocs.bea.com/wls/docs81/webserv/security.html#1053203
Karen Yuan wrote:
>
Hi Bruce,
I was also getting the SerializationException when I tried to connect from my
weblogic web
service client to my HTTPS webMethods web service (SOAP-RPC protocol). Then I
included
webserviceclient+ssl.jar client runtime JAR file on both of my client and server
sides and re-ran
my test. I still got the same error:
Exception in thread "main" java.rmi.RemoteException: web service invoke failed:
javax.xml.soap.SOAPException: failed to serialize class java.lang.Objectweblogic.xml.schema.binding.SerializationException:
type mapping lookup
failure on class=class java.io.StringReader TypeMapping=TYPEMAPPING SIZE=2
ENTRY 1:
class: com.freddiemac.ImportLoan.FileUploadHttpsStreamClient.WS_1.importLoan
SubmitStream.CallServletInput
xsd_type: ['http://com/freddiemac/ImportLoan/FileUploadHttpsStreamClient/WS_1/i
mportLoanSubmitStream']:lcl0:__callServletInput
ser: com.freddiemac.ImportLoan.FileUploadHttpsStreamClient.WS_1.importLoan
SubmitStream.CallServletInputCodec@7eb366
deser: com.freddiemac.ImportLoan.FileUploadHttpsStreamClient.WS_1.importLoan
SubmitStream.CallServletInputCodec@33f0de
ENTRY 2:
class: com.freddiemac.ImportLoan.FileUploadHttpsStreamClient.WS_1.importLoan
SubmitStream.CallServletOutput
xsd_type: ['http://com/freddiemac/ImportLoan/FileUploadHttpsStreamClient/WS_1/i
mportLoanSubmitStream']:lcl0:__CallServletOutput
ser: com.freddiemac.ImportLoan.FileUploadHttpsStreamClient.WS_1.importLoan
SubmitStream.CallServletOutputCodec@ab444
deser: com.freddiemac.ImportLoan.FileUploadHttpsStreamClient.WS_1.importLoan
SubmitStream.CallServletOutputCodec@c0f1ec; nested exception is:
.... more
Any suggestions?
Thanks,
Karen
Bruce Stephens <[email protected]> wrote:
Hi Jacob,
From your post it was not clear was working and what was changed. Could
you clarify. Note, for the standalone client app using SSL, you will
need to include webserviceclient+ssl.jar client runtime JAR file,
described in the docs [1].
Thanks,
Bruce
[1]
http://edocs.bea.com/wls/docs81/webserv/security.html#1053203
Jacob Anderson wrote:
I was able to get my HTTPS web service to communicate with my clients,but now
when I try to connect to the web service (type=document), I get thiserror:
[java] 3) testQuoteStubs(com.arrow.arrowsoap.client.QuoteServiceClientTest)
junit.framework.AssertionFailedError: failed to serialize class java.lang.Objectweblogic.xml.schema.binding.SerializationException:
type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
TypeMapping=TYPE
MAPPING SIZE=3
[java] ENTRY 1:
[java] class: java.lang.Object
[java] xsd_type: ['https://www.xxx.com/QuoteService/']:lcl0:ProcessResponse
[java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
b957ea
[java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
3aff84
[java] ENTRY 2:
[java] class: java.lang.Object
[java] xsd_type: ['https://www.xxx.com/QuoteService/']:lcl0:Process
[java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
15d4de6
[java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
a53de4
[java] ENTRY 3:
[java] class: java.lang.Object
[java] xsd_type: ['http://www.w3.org/2001/XMLSchema']:xsd:anyType
[java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
827968
[java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
1f0b7d3
[java] at com.arrow.arrowsoap.client.QuoteServiceClientTest.testQuoteSt
ubs(QuoteServiceClientTest.java:98)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
Attached is the WSDL for the service.
The type-mapping file looks like:
<wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<wsdd:type-mapping-entry xmlns:lcl0="https://www.xxx.com/QuoteService/"
class-name="java.lang.Object"
type="lcl0:ProcessResponse"
serializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="https://www.xxx.com/QuoteService/"
class-name="java.lang.Object"
type="lcl0:Process"
serializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry class-name="java.lang.Object"
type="xsd:anyType"
serializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec"
deserializer="weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec">
</wsdd:type-mapping-entry>
</wsdd:type-mapping>
Any ideas?? Am I missing something from my classpath?? I am runningthe tests
using the WL 8.1 ANT installation and using this as my WL classpath(my own jars
are added first in the path and are omitted here):
<pathelement path="${weblogic.home}/lib/webserviceclient.jar"/>
<pathelement path="${weblogic.home}/lib/weblogic_sp.jar"/>
<pathelement path="${weblogic.home}/lib/weblogic.jar"/>
Thanks
-- jake
Name: QuoteService.wsdl
QuoteService.wsdl Type: ACT Project (text/xml)
Encoding: base64 -
Error invoking Web Service from Web application in BEA
I have a web service wich run fine at bea weblogic.
If i invoke it from webapp in sunappserver no problem , from plain client no problem , from oc4j no problem, but if a invoke from same webapp from weblogic i get this error:
<b>java.rmi.RemoteException: Failed to invoke; nested exception is:
javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to ser
ialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup
failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://ejb.ds
ic.pucv.cl/types/']:getMatriculaElement}
at jrockit.reflect.NativeConstructorInvoker.newInstance([Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at java.lang.reflect.Constructor.newInstance([Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at weblogic.webservice.core.rpc.StubImpl.throwRemoteException(StubImpl.java:269)
at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:254)
at $Proxy46.getMatricula(Ljava.lang.String;)Ljava.lang.String;(Unknown Source)
at cl.pucv.dsic.ws.cliente.ClienteWebService.getMatricula(ClienteWebService.java:100)
at cl.pucv.dsic.consulta.queryBtn_action(consulta.java:667)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.
Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown S
ource)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:57)
at javax.faces.component.UICommand.broadcast(UICommand.java:312)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
Caused by: javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to
serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping look
up failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://ejb
.dsic.pucv.cl/types/']:getMatriculaElement}
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:334)
at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:250)
at $Proxy46.getMatricula(Ljava.lang.String;)Ljava.lang.String;(Unknown Source)
at cl.pucv.dsic.ws.cliente.ClienteWebService.getMatricula(ClienteWebService.java:100)
at cl.pucv.dsic.consulta.queryBtn_action(consulta.java:667)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.
Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown S
ource)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:57)
at javax.faces.component.UICommand.broadcast(UICommand.java:312)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.jav
a:3212)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)</b>
the WSDL for this ws is:
<b> <?xml version="1.0" encoding="UTF-8" ?>
- <definitions name="WSMatricula" targetNamespace="http://ejb.dsic.pucv.cl/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="http://ejb.dsic.pucv.cl/types/" xmlns:s1="http://ejb.dsic.pucv.cl/" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/">
- <types>
- <xsd:schema elementFormDefault="qualified" targetNamespace="http://ejb.dsic.pucv.cl/types/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://ejb.dsic.pucv.cl/types/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://ejb.dsic.pucv.cl/types/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsd:element name="getMatriculaElement" nillable="true" type="string" />
<xsd:element name="getMatriculaResponseElement" nillable="true" type="string" />
</xsd:schema>
</types>
- <message name="EJBConsultaWebService_getMatricula">
<part element="s0:getMatriculaElement" name="parameters" />
</message>
- <message name="EJBConsultaWebService_getMatriculaResponse">
<part element="s0:getMatriculaResponseElement" name="result" />
</message>
- <portType name="WSMatricula">
- <operation name="getMatricula">
<input message="s1:EJBConsultaWebService_getMatricula" />
<output message="s1:EJBConsultaWebService_getMatriculaResponse" />
</operation>
</portType>
- <binding name="WSMatriculaSoapHttp" type="s1:WSMatricula">
<s2:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="getMatricula">
<s2:operation soapAction="http://ejb.dsic.pucv.cl//getMatricula" />
- <input>
<s2:body parts="parameters" use="literal" />
</input>
- <output>
<s2:body parts="result" use="literal" />
</output>
</operation>
</binding>
- <service name="WSMatricula">
- <port binding="s1:WSMatriculaSoapHttp" name="WSMatriculaSoapHttpPort">
<s2:address location="http://ip:port/EJB-WebServicesDSIC/WSMatriculaSoapHttpPort" />
</port>
</service>
</definitions></b>
and the client is
<b>
package cl.pucv.dsic.ws.cliente;
import com.ac.util.MyDOMParser;
import java.util.Hashtable;
import java.util.ArrayList;
import com.ac.util.Config;
import java.net.URL;
import javax.xml.rpc.Service;
import javax.xml.rpc.JAXRPCException;
import javax.xml.namespace.QName;
import javax.xml.rpc.ServiceFactory;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import java.io.*;
public class ClienteWebService implements Serializable {
private String UrlString = "";
private String nameSpaceUri = "";
private String serviceName = "";
private String portName = "";
public ClienteWebService() {
public String getMatricula(String servicename, String param) throws Exception
try
Hashtable ht = (Hashtable)Config.getInstance().getHashtable("WS","Nombre",servicename);
setUrlString((String)ht.get("EndPoint"));
setNameSpaceUri((String)ht.get("URI"));
setServiceName((String)ht.get("ServiceName"));
setPortName((String)ht.get("PortName"));
URL wsdlUrl = new URL(getUrlString() + "?WSDL");
ServiceFactory serviceFactory = ServiceFactory.newInstance();
Service helloService =
serviceFactory.createService(wsdlUrl,
new QName(getNameSpaceUri(), getServiceName()));
WebServiceDSICIF myProxy =
(WebServiceDSICIF) helloService.getPort(new QName(getNameSpaceUri(),
getPortName()),
WebServiceDSICIF.class);
return myProxy.getMatricula(param);
catch (Exception ex)
ex.printStackTrace();
return "<ERROR>"+ ex.getMessage()+"</ERROR>";
public static void main(String[] args) {
try {
ClienteWebService clws = new ClienteWebService();
ArrayList l = new ArrayList();
String xml = "";
if (args.length>0)
xml = clws.getMatricula("WsSQL",args[0]);
System.out.println("Rut : " + args[0] + " = " + xml);
else
DataInputStream input = new DataInputStream( System.in );
String bufferIn;
while((bufferIn = input.readLine()) != null){
xml = clws.getMatricula("WsSQL",bufferIn);
System.out.print("Rut : " + bufferIn + " = " + xml);
} catch (Exception ex) {
ex.printStackTrace();
public String getUrlString() {
return UrlString;
public void setUrlString(String _UrlString) {
this.UrlString = _UrlString;
public String getNameSpaceUri() {
return nameSpaceUri;
public void setNameSpaceUri(String _nameSpaceUri) {
this.nameSpaceUri = _nameSpaceUri;
public String getServiceName() {
return serviceName;
public void setServiceName(String _serviceName) {
this.serviceName = _serviceName;
public String getPortName() {
return portName;
public void setPortName(String _portName) {
this.portName = _portName;
}</b>
and the external config for this service is:
<b><Webservices>
<WS>
<Nombre>WsSQL</Nombre>
<EndPoint>http://ip:port/EJB-WebServicesDSIC/WSMatriculaSoapHttpPort</EndPoint>
<URI>http://ejb.dsic.pucv.cl/</URI>
<ServiceName>WSMatricula</ServiceName>
<PortName>WSMatriculaSoapHttpPort</PortName>
</WS>
</Webservices></b>
please helpme, four days in that :SHi,
Can you provide the pl/sql function or the web service wsdl generated from it, so that we can try to reproduce it.
Also, in an earlier post, I saw a workaround of changing it so the function returned defined type as :
type ListCursor is ref cursor return ListRecord
You can also see if this works out if possible.
Regards,
Sunil.. -
AxisFault seen while invoking document style web service
I am seeing the following stacktrace when I try to invoke a document-style web service.
<partnerRole name="MyWebService1_Role">
<ServiceName>{http://idm.oracle.com/}MyWebService1</ServiceName>
<PortType>{http://idm.oracle.com/}MyWebService1</PortType>
<Address>null</Address>
</partnerRole>
<conversationId>bpel://localhost/default/ProvisioningFromDAS~1.0/4202-BpInv0-BpSeq0.3-3</conversationId>
<properties>{}</properties>
</partnerLink>
<2005-09-06 09:23:37,650> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::invoke> Fault happened
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: caught exception while handling request: expected element is missing: {http://idm.oracle.com/}attribute
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:caught exception while handling request: expected element is missing: {http://idm.oracle.com/}attribute
at org.collaxa.thirdparty.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.collaxa.thirdparty.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.collaxa.thirdparty.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1083)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
What could this mean ?Hi,
I am getting a similar issue. I created a Document-style/literal webservice and deployed on Weblogic 9.2 . Then I generated client stubs using clientgen. I get the following exception stack trace:
java.rmi.RemoteException: web service invoke failed: javax.xml.soap.SOAPException:
failed to serialize class java.lang.Objectweblogic.xml.schema.binding.SerializationException: type mapping lookup failure on
class=class com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl TypeMapping=TYPEMAPPING SIZE=3
ENTRY 1:
class: java.lang.Object
xsd_type: ['http://xmlns.ozarkexpress.com/business/sell']:stns:echoDocumentResponse
ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@1125127
deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@18dfef8
ENTRY 2:
class: java.lang.Object
xsd_type: ['http://xmlns.ozarkexpress.com/business/sell']:stns:echoDocument
ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@15e83f9
deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@2a5330
ENTRY 3:
class: java.lang.Object
xsd_type: ['http://www.w3.org/2001/XMLSchema']:xsd:anyType
ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@bb7465
deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@d6c16c -
RMI exception calling web service from proxy class
I am getting the following error attempting to call a web service from a proxy. It appears to relate to the type of objects I am trying to send vs the type that is expected. Following the exception I am adding a copy of the control where calling the web service is sucessful, a copy of the proxy class that I am using to make this unsucessful call, and the controller.jpf that has the formBean where I am creating my objects
Caught Exception Calling the Web Service from the Proxy. The Exception is the f
ollowing: java.rmi.RemoteException: web service invoke failed: javax.xml.soap.SO
APException: failed to serialize class org.openuri.www.CreateAccountCheckingReq
uestweblogic.xml.schema.binding.SerializationException: type mapping lookup fail
ure on class=class controls.CheckingService$anyType TypeMapping=TYPEMAPPING SIZE
=5
ENTRY 1:
class: org.openuri.www.CreateAccountCheckingResponse
xsd_type: ['http://www.openuri.org/']:lcl0:CreateAccountCheckingResponse
ser: org.openuri.www.CreateAccountCheckingResponseCodec@c0f4da
deser: org.openuri.www.CreateAccountCheckingResponseCodec@b1dd4
ENTRY 2:
class: org.openuri.www.FundingInfoAnonType
xsd_type: ['http://www.openuri.org/']:lcl0:FundingInfoAnonType
ser: org.openuri.www.FundingInfoAnonTypeCodec@1d36711
deser: org.openuri.www.FundingInfoAnonTypeCodec@13a59e
ENTRY 3:
class: org.openuri.www.AccountInfoAnonType
xsd_type: ['http://www.openuri.org/']:lcl0:AccountInfoAnonType
ser: org.openuri.www.AccountInfoAnonTypeCodec@1de5959
deser: org.openuri.www.AccountInfoAnonTypeCodec@bbf788
ENTRY 4:
class: org.openuri.www.CustomerInfoAnonType
xsd_type: ['http://www.openuri.org/']:lcl0:CustomerInfoAnonType
ser: org.openuri.www.CustomerInfoAnonTypeCodec@7824f9
deser: org.openuri.www.CustomerInfoAnonTypeCodec@1c35fe1
ENTRY 5:
class: org.openuri.www.CreateAccountCheckingRequest
xsd_type: ['http://www.openuri.org/']:lcl0:CreateAccountCheckingRequest
ser: org.openuri.www.CreateAccountCheckingRequestCodec@1cbcd7b
deser: org.openuri.www.CreateAccountCheckingRequestCodec@11f60ce
; nested exception is:
javax.xml.soap.SOAPException: failed to serialize class org.openuri.www
.CreateAccountCheckingRequestweblogic.xml.schema.binding.SerializationException:
type mapping lookup failure on class=class controls.CheckingService$anyType Typ
eMapping=TYPEMAPPING SIZE=5
ENTRY 1:
class: org.openuri.www.CreateAccountCheckingResponse
xsd_type: ['http://www.openuri.org/']:lcl0:CreateAccountCheckingResponse
ser: org.openuri.www.CreateAccountCheckingResponseCodec@c0f4da
deser: org.openuri.www.CreateAccountCheckingResponseCodec@b1dd4
ENTRY 2:
class: org.openuri.www.FundingInfoAnonType
xsd_type: ['http://www.openuri.org/']:lcl0:FundingInfoAnonType
ser: org.openuri.www.FundingInfoAnonTypeCodec@1d36711
deser: org.openuri.www.FundingInfoAnonTypeCodec@13a59e
ENTRY 3:
class: org.openuri.www.AccountInfoAnonType
xsd_type: ['http://www.openuri.org/']:lcl0:AccountInfoAnonType
ser: org.openuri.www.AccountInfoAnonTypeCodec@1de5959
deser: org.openuri.www.AccountInfoAnonTypeCodec@bbf788
ENTRY 4:
class: org.openuri.www.CustomerInfoAnonType
xsd_type: ['http://www.openuri.org/']:lcl0:CustomerInfoAnonType
ser: org.openuri.www.CustomerInfoAnonTypeCodec@7824f9
deser: org.openuri.www.CustomerInfoAnonTypeCodec@1c35fe1
ENTRY 5:
class: org.openuri.www.CreateAccountCheckingRequest
xsd_type: ['http://www.openuri.org/']:lcl0:CreateAccountCheckingRequest
ser: org.openuri.www.CreateAccountCheckingRequestCodec@1cbcd7b
deser: org.openuri.www.CreateAccountCheckingRequestCodec@11f60ce
Java Control for the web service:
package controls;
import weblogic.webservice.context.WebServiceContext;
* @jc:location http-url="http://localhost:7001/Checking.jws"
* @jc:wsdl file="#CheckingWsdl"
* @jc:handler callback="MessageHandler" operation="MessageHandler"
public interface CheckingService extends com.bea.control.ControlExtension, com.bea.control.ServiceControl
public static class CustomerInfo
implements java.io.Serializable
public java.lang.String FirstName;
public java.lang.String LastName;
public java.lang.String MiddleName;
public int SSN;
public int CustomerNumber;
public java.util.Calendar CreationDate;
public java.util.Calendar LastModifiedDate;
public static class FundingInfo
implements java.io.Serializable
public float Amount;
public java.util.Calendar CurrentDate;
public int AccountNumber;
public static class anyType
implements java.io.Serializable
public com.bea.xml.XmlObject[] t;
public static class AccountInfo
implements java.io.Serializable
public int AccountNumber;
public float Balance;
public int CustomerNumber;
public java.util.Calendar LastModifiedDate;
public WebServiceContext context = CheckingService.context;
* @jc:protocol form-post="false" form-get="false"
public AccountInfo CreateAccountChecking (CustomerInfo CustomerInfo, FundingInfo FundingInfo, anyType CommonHeader);
static final long serialVersionUID = 1L;
/** @common:define name="CheckingWsdl" value::
<?xml version="1.0" encoding="utf-8"?>
<!-- @editor-info:link autogen="false" source="" -->
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/" xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.openuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.openuri.org/">
<types>
<s:schema targetNamespace="http://www.openuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema">
<s:element name="CreateAccountCheckingRequest">
<s:complexType>
<s:sequence>
<s:element name="CustomerInfo">
<s:complexType>
<s:sequence>
<s:element name="FirstName" type="s:string" nillable="false"/>
<s:element name="LastName" type="s:string" nillable="false"/>
<s:element name="MiddleName" type="s:string" nillable="true"/>
<s:element name="SSN" type="s:int"/>
<s:element name="CustomerNumber" type="s:int"/>
<s:element name="CreationDate" type="s:dateTime"/>
<s:element name="LastModifiedDate" type="s:dateTime"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="FundingInfo">
<s:complexType>
<s:sequence>
<s:element name="Amount" type="s:float"/>
<s:element name="CurrentDate" type="s:dateTime"/>
<s:element name="AccountNumber" type="s:int"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="CommonHeader" type="s:anyType"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="CreateAccountCheckingResponse">
<s:complexType>
<s:sequence>
<s:element name="AccountInfo">
<s:complexType>
<s:sequence>
<s:element name="AccountNumber" type="s:int"/>
<s:element name="Balance" type="s:float"/>
<s:element name="CustomerNumber" type="s:int"/>
<s:element name="LastModifiedDate" type="s:dateTime"/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="string" nillable="true" type="s:string"/>
</s:schema>
</types>
<message name="CreateAccountCheckingSoapIn">
<part name="parameters" element="s0:CreateAccountCheckingRequest"/>
</message>
<message name="CreateAccountCheckingSoapOut">
<part name="parameters" element="s0:CreateAccountCheckingResponse"/>
</message>
<portType name="CheckingSoap">
<operation name="CreateAccountChecking">
<input message="s0:CreateAccountCheckingSoapIn"/>
<output message="s0:CreateAccountCheckingSoapOut"/>
</operation>
</portType>
<binding name="CheckingSoap" type="s0:CheckingSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="CreateAccountChecking">
<soap:operation soapAction="http://www.openuri.org/CreateAccountChecking" style="document"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="Checking">
<port name="CheckingSoap" binding="s0:CheckingSoap">
<soap:address location="http://localhost:7001/Checking.jws"/>
</port>
</service>
</definitions>
FOLLOWING IS THE PROXY CLASS THAT IS UNSUCCESSFUL
import controls.CheckingService.anyType;
import java.util.ArrayList;
import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.rpc.handler.HandlerRegistry;
import org.openuri.CreateAccountCheckingResponseDocument.CreateAccountCheckingResponse;
import org.openuri.www.CustomerInfoAnonType;
import org.openuri.www.FundingInfoAnonType;
import weblogic.jws.proxies.*;
import weblogic.webservice.context.WebServiceContext;
import weblogic.webservice.context.WebServiceSession;
import weblogic.webservice.core.handler.WSSEClientHandler;
import weblogic.webservice.tools.pagegen.result;
import weblogic.xml.security.UserInfo;
import weblogic.xml.security.wsse.Security;
import weblogic.xml.security.wsse.SecurityElementFactory;
//import weblogic.jws.proxies.WebServiceB;
//import weblogic.jws.proxies.WebServiceB_Impl;
//import weblogic.jws.proxies.WebServiceBSoap;
public class CheckingWSProxy
public static void CallWS(Controller.CreateAccountCheckingForm form)
String user;
String pass;
try{
* Instantiate the main proxy class. The proxy class has the same name as the
* web service, with "_Impl" appended.
Checking myservice = new Checking_Impl("http://localhost:7001/ConsumerAccountApp/schemas/CheckingService.wsdl");
WebServiceContext context = myservice.context();
WebServiceSession session = context.getSession();
* Registers a handler for the SOAP message traffic.
HandlerRegistry registry = myservice.getHandlerRegistry();
List list = new ArrayList();
list.add(new HandlerInfo(WSSEClientHandler.class, null, null));
registry.setHandlerChain(new QName("Checking"), list);
* Set the username and password token for SOAP message sent from the client, through
* the proxy, to the web service.
user = form.getUsername();
pass = form.getPassword();
UserInfo ui = new UserInfo(user, pass);
session.setAttribute(WSSEClientHandler.REQUEST_USERINFO, ui);
* Adds the username / password token to the SOAP header.
SecurityElementFactory factory = SecurityElementFactory.getDefaultFactory();
Security security = factory.createSecurity(null);
security.addToken(ui);
session.setAttribute(WSSEClientHandler.REQUEST_SECURITY, security);
* Get the protocol-specific proxy class.
CheckingSoap msg=myservice.getCheckingSoap();
* Invoke the web service method
msg.createAccountChecking((CustomerInfoAnonType)form.getProxyCustomerInfo(), (FundingInfoAnonType)form.getProxyFundingInfo(), (Object)form.get_CommonHeader());
catch (Exception ex)
System.out.println("Caught Exception Calling the Web Service from the Proxy. The Exception is the following: " + ex.toString());
FOLLOWING IS THE FORMBEAN IN THE CONTROLLER.JPF FILE
* FormData get and set methods may be overwritten by the Form Bean editor.
public static class CreateAccountCheckingForm extends FormData
private anyType _CommonHeader;
private controls.CheckingService.FundingInfo _FundingInfo;
private controls.CheckingService.CustomerInfo _CustomerInfo;
private java.util.Date dOut;
private java.util.Calendar cOut;
private CustomerInfo proxyCustomerInfo;
private FundingInfo proxyFundingInfo;
private String stringDate;
private String currentDate;
private String lastModifiedDate;
private String creationDate;
private String systemMessage;
private String username;
private String password;
private String accountType;
private String trashTransferAccount;
private String trashAccountNumber;
private boolean secureFlag;
public void set_CustomerInfo(controls.CheckingService.CustomerInfo _CustomerInfo)
_CustomerInfo.CreationDate = parseDate(getCreationDate());
_CustomerInfo.LastModifiedDate = parseDate(getLastModifiedDate());
this._CustomerInfo = _CustomerInfo;
public controls.CheckingService.CustomerInfo get_CustomerInfo()
if(this._CustomerInfo == null)
this._CustomerInfo = new controls.CheckingService.CustomerInfo();
_CustomerInfo.CreationDate = dateNow();
_CustomerInfo.LastModifiedDate = dateNow();
return this._CustomerInfo;
public CustomerInfo getProxyCustomerInfo()
this.proxyCustomerInfo = (CustomerInfo)this._CustomerInfo;
return this.proxyCustomerInfo;
public void set_FundingInfo(controls.CheckingService.FundingInfo _FundingInfo)
_FundingInfo.CurrentDate = parseDate(getCurrentDate());
this._FundingInfo = _FundingInfo;
public controls.CheckingService.FundingInfo get_FundingInfo()
if(this._FundingInfo == null)
this._FundingInfo = new controls.CheckingService.FundingInfo();
_FundingInfo.CurrentDate = dateNow();
return this._FundingInfo;
public FundingInfo getProxyFundingInfo()
this.proxyFundingInfo = (FundingInfo)this._FundingInfo;
return this.proxyFundingInfo;
public void set_CommonHeader(anyType _CommonHeader)
this._CommonHeader = _CommonHeader;
public anyType get_CommonHeader()
if(this._CommonHeader == null)
this._CommonHeader = new anyType();
return this._CommonHeader;
public java.util.Calendar dateNow()
this.dOut = new Date();
Calendar cOut = this.cOut.getInstance();
cOut.setTime(this.dOut);
this.cOut = cOut;
return this.cOut;
public java.util.Calendar parseDate( String strDate )
SimpleDateFormat df4 = new SimpleDateFormat( "MM/dd/yyyy" );
Calendar cOut = this.cOut;
df4.setLenient( false );
try
this.dOut = df4.parse( strDate );
} catch ( ParseException e )
cOut.getInstance();
cOut.setTime(dOut);
this.cOut = cOut;
return this.cOut;
public void setStringDate( String stringDate )
this.stringDate = stringDate;
public String getStringDate()
return this.stringDate;
public void setCurrentDate( String currentDate )
this.currentDate = currentDate;
public String getCurrentDate()
SimpleDateFormat df4 = new SimpleDateFormat( "MM/dd/yyyy" );
this.currentDate = df4.format(_FundingInfo.CurrentDate.getTime());
return this.currentDate;
public void setLastModifiedDate( String lastModifiedDate )
this.lastModifiedDate = lastModifiedDate;
public String getLastModifiedDate()
SimpleDateFormat df4 = new SimpleDateFormat( "MM/dd/yyyy" );
this.lastModifiedDate = df4.format(_CustomerInfo.LastModifiedDate.getTime());
return this.lastModifiedDate;
public void setCreationDate( String creationDate )
this.creationDate = creationDate;
public String getCreationDate()
SimpleDateFormat df4 = new SimpleDateFormat( "MM/dd/yyyy" );
this.creationDate = df4.format(_CustomerInfo.CreationDate.getTime());
return this.creationDate;
public void setUsername( String username )
this.username = username;
public String getUsername()
return this.username;
public void setPassword( String password )
this.password = password;
public String getPassword()
return this.password;
public void setAccountType( String accountType )
this.accountType = accountType;
public String getAccountType()
return this.accountType;
public void setTrashTransferAccount( String trashTransferAccount )
this.trashTransferAccount = trashTransferAccount;
public String getTrashTransferAccount()
return this.trashTransferAccount;
public void setTrashAccountNumber( String trashAccountNumber )
this.trashAccountNumber = trashAccountNumber;
public String getTrashAccountNumber()
return this.trashAccountNumber;
public void setSystemMessage( String systemMessage )
this.systemMessage = systemMessage;
public String getSystemMessage()
return this.systemMessage;
public void setSecureFlag( boolean secureFlag )
this.secureFlag = secureFlag;
public boolean getSecureFlag()
return this.secureFlag;
}This exception means that xml namespaces are different.
Etc. soap has xml element which doesn't belong to namespace of parent xml element and namespace is set without prefix.
I had such problem.
Try to set namespace prefix for this element.
Example:
<el1>
<el2 xmlns="http://..."/>
</el1>
Should be
<el1>
<q:el2 xmlns:q="http://..."/>
</el1> -
Error while passing non built in java type as parameter to webservice
Hi,
I am using Weblogic8.1 to deploy my webservice. I have designed Dynamic Proxy client to invoke my webservice. While calling webservice, i am passing array of my POJO class as an input parameter to my webservice and getting below error -
[java] java.lang.reflect.UndeclaredThrowableException
[java] at $Proxy0.lookup(Unknown Source)
[java] at cititru.scan.transScan.createGiService(transScan.java:64)
[java] at cititru.scan.transScan.main(transScan.java:26)
[java] Caused by: java.rmi.RemoteException: Failed to invoke; nested exception is:
[java] javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to serialize class [Lcititru.api.interdict.gi.ScannedTextData;weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class [Lcititru.api.interdict.gi.ScannedTextData; class context=TypedClassContext{schemaType=['java:cititru.api.interdict.gi']:ArrayOfScannedTextData}
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[java] at weblogic.webservice.core.rpc.StubImpl.throwRemoteException(StubImpl.java:266)
[java] at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:251)
[java] ... 3 more
In above error message ScannedTextData is my POJO class which i am passing as an array to my webservice.I am using servicegen and clientgen ant task to generate my service. Also i am setting generateTypes=True to generate Serialization class automatically. Please anyone can tell me what's need to be done to resolve the above error.
I am also pasting code snippet of my Dynamic Proxy client.
import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.encoding.TypeMappingRegistry;
import javax.xml.rpc.encoding.TypeMapping;
import java.net.URL;
import java.util.StringTokenizer;
import java.util.ArrayList;
import cititru.api.interdict.gi.*;*
*import cititru.interdict.gi.*;
String wsdlURL = "http://localhost:7001/ws_gi_server/GiService?WSDL";
String namespace = "http://www.bea.com/ws_gi_server";
String serviceName = "GiService";
String portName = "GiServicePort";
ServiceFactory serviceFactory = ServiceFactory.newInstance();
QName service_Name = new QName(namespace, serviceName);
Service sampleService = serviceFactory.createService(new URL(wsdlURL), service_Name);
TypeMappingRegistry tmr = sampleService.getTypeMappingRegistry();
TypeMapping tm = (TypeMapping)tmr.createTypeMapping();
tm.register(ScannedTextData.class, service_Name, new ScannedTextDataCodec(), new ScannedTextDataCodec());
/* Service access */*
*GiServerInterface gi = (GiServerInterface) sampleService.getPort(new QName(namespace, portName),*
*GiServerInterface.class);*
*/* Service invocation */
bluReplyData = gi.lookup("MUMBAI",ruleSet,"EXECUTOR1",std);-----
Regards,
AnkitHi,
I am using Weblogic8.1 to deploy my webservice. I have designed Dynamic Proxy client to invoke my webservice. While calling webservice, i am passing array of my POJO class as an input parameter to my webservice and getting below error -
[java] java.lang.reflect.UndeclaredThrowableException
[java] at $Proxy0.lookup(Unknown Source)
[java] at cititru.scan.transScan.createGiService(transScan.java:64)
[java] at cititru.scan.transScan.main(transScan.java:26)
[java] Caused by: java.rmi.RemoteException: Failed to invoke; nested exception is:
[java] javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to serialize class [Lcititru.api.interdict.gi.ScannedTextData;weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class [Lcititru.api.interdict.gi.ScannedTextData; class context=TypedClassContext{schemaType=['java:cititru.api.interdict.gi']:ArrayOfScannedTextData}
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[java] at weblogic.webservice.core.rpc.StubImpl.throwRemoteException(StubImpl.java:266)
[java] at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:251)
[java] ... 3 more
In above error message ScannedTextData is my POJO class which i am passing as an array to my webservice.I am using servicegen and clientgen ant task to generate my service. Also i am setting generateTypes=True to generate Serialization class automatically. Please anyone can tell me what's need to be done to resolve the above error.
I am also pasting code snippet of my Dynamic Proxy client.
import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.encoding.TypeMappingRegistry;
import javax.xml.rpc.encoding.TypeMapping;
import java.net.URL;
import java.util.StringTokenizer;
import java.util.ArrayList;
import cititru.api.interdict.gi.*;*
*import cititru.interdict.gi.*;
String wsdlURL = "http://localhost:7001/ws_gi_server/GiService?WSDL";
String namespace = "http://www.bea.com/ws_gi_server";
String serviceName = "GiService";
String portName = "GiServicePort";
ServiceFactory serviceFactory = ServiceFactory.newInstance();
QName service_Name = new QName(namespace, serviceName);
Service sampleService = serviceFactory.createService(new URL(wsdlURL), service_Name);
TypeMappingRegistry tmr = sampleService.getTypeMappingRegistry();
TypeMapping tm = (TypeMapping)tmr.createTypeMapping();
tm.register(ScannedTextData.class, service_Name, new ScannedTextDataCodec(), new ScannedTextDataCodec());
/* Service access */*
*GiServerInterface gi = (GiServerInterface) sampleService.getPort(new QName(namespace, portName),*
*GiServerInterface.class);*
*/* Service invocation */
bluReplyData = gi.lookup("MUMBAI",ruleSet,"EXECUTOR1",std);-----
Regards,
Ankit -
Hello,
I have Tomcat 3.3.1a web container running with JSP that acts like Weblogic 7.0
SP2
webservice client. However, when I try to send data file to webservice, I get
the following
error:
web service invoke failed; nested exception is:
javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=class javax.activation.DataHandler class context=TypedClassContext{schemaType=['http://www.ma.ee']:register}
It is SOAP With Attachments style webservice. Is it related somehow with javax.activation.Datahandler
class? Please answer urgently!
Best regards,
Ago MeisterHello,
What is the content type you are trying to send?
Also, I would encourage all urgent questions to be directed to our
outstanding support group: [email protected] http://support.bea.com
Thanks,
Bruce
Ago Meister wrote:
>
Hello,
I have Tomcat 3.3.1a web container running with JSP that acts like Weblogic 7.0
SP2
webservice client. However, when I try to send data file to webservice, I get
the following
error:
web service invoke failed; nested exception is:
javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=class javax.activation.DataHandler class context=TypedClassContext{schemaType=['http://www.ma.ee']:register}
It is SOAP With Attachments style webservice. Is it related somehow with javax.activation.Datahandler
class? Please answer urgently!
Best regards,
Ago Meister -
We have three issues when trying to implement a document-style service. I will
document them all but I'd suggest you go through them all before attempting to
answer any of them.
We are trying to implement a service that has the following signature:
public void echoDom(Document doc)
We want the delivery of our message to be of style ("document"). Therefore, we
modified our servicegen entry to include the style="document" under the service.
It looks like the following:
<servicegen
destEar="${appDir}/dom.ear"
warName="dom.war">
<service
javaClassComponents="examples.dom.EchoDom"
targetNamespace="http://examples.org"
serviceName="dom"
serviceURI="/EchoDomService"
generateTypes="True"
expandMethods="True"
style="document">
<client
packageName="examples.dom"
clientJarName="client.jar"
/>
</service>
<classpath>
<pathelement path="${temp_dir}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</servicegen>
1. FIRST PROBLEM:
The first problem we're having is that it does not compile with the combination
of our signature being of type void (as shown above) and the style="document"
in build.xml.
The error is the following:
[servicegen] Generating service "dom" ...
[servicegen] Generating XML types and serializers from java classes (examples.do
m.EchoDom) ...
[servicegen] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ void:
null ]
[servicegen] at weblogic.utils.Debug.assertion(Debug.java:84)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
(Compiler.java:111)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
pClass(XSDTypeMappingBuilder.java:88)
[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
ddMapping(TypeMappingBuilderBase.java:183)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper
.mapComponent(ComponentAutoTyper.java:155)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(
JavaAutoTyper.java:80)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execu
te(AutoTypeTask.java:353)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
enerateService(ServiceGenTask.java:251)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
xecute(ServiceGenTask.java:146)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:217)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:164)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:182)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:601)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:560)
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[servicegen] at org.apache.tools.ant.Main.start(Main.java:153)
[servicegen] at org.apache.tools.ant.Main.main(Main.java:176)
2. SECOND PROBLEM
If we change the signature to become:
public Document echoDom(Document doc)
then the build works but when we try to test our service, it gives us the following:
[java] java.rmi.RemoteException: web service invoke failed; nested exceptio
n is:
[java] javax.xml.soap.SOAPException: failed to serialize xml:weblogic.
xml.schema.binding.SerializationException: type mapping lookup failure on class=
class weblogic.apache.xerces.dom.DocumentImpl TypeMapping=TYPEMAPPING SIZE=6
[java] ENTRY 1:
[java] class: org.w3c.dom.Document
[java] xsd_type: ['http://examples.org']:p3:echoDom
[java] ser: weblogic.xml.schema.binding.internal.builtin.DocumentCode
c@5973ea
[java] deser: weblogic.xml.schema.binding.internal.builtin.DocumentCode
c@49131c
[java] ENTRY 2:
[java] class: java.lang.Object
[java] xsd_type: ['http://examples.org']:p1:echoDomResponse
[java] ser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
5b99f
[java] deser: weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
3. THIRD PROBLEM:
Now, when we revert back to style="rpc" and everything works fine and dandy (although
not as we want it because, as I mentioned above, we want a void signature and
a document style), we get the following added tag around our body content, which
we did not add ourselves, nor are we sure yet why it shows up:
We pass it the following argument:
<those dummy="hi">
<this xmlns="mynamespace">
<f:that xmlns:f="yournamespace">
<or> a lot of random < </or>
<f:the>
</f:the>
<f:other> foo bar blaz</f:other>
</f:that>
</this>
</those>
We get the following (notice the <document> tag around it):
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<m:echoDom xmlns:m="http://examples.org"
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<document>
<those dummy="hi">
<this xmlns="mynamespace">
<f:that xmlns:f="yournamespace">
<or> a lot of random < </or>
<f:the>
</f:the>
<f:other> foo bar blaz</f:other>
</f:that>
</this>
</those>
</document>
</m:echoDom>
</env:Body>
</env:Envelope>
4. PROBLEM FOUR (just remembered this one):
If we use the standard test page (provided with WLS), with (3) above, it chops
off the "those" and it still wraps it within this new <document> element as show
below:
<!--REQUEST.................-->
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header>
</env:Header>
<env:Body>
<m:echoDom xmlns:m="http://examples.org"
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<document>
<this xmlns="mynamespace">
<f:that xmlns:f="yournamespace">
<or> a lot of random < </or>
<f:the>
</f:the>
<f:other> foo bar blaz</f:other>
</f:that>
</this>
</document>
</m:echoDom>
</env:Body>
</env:Envelope>
We're not so worried about the fourth because it seems like a bug but the first
three (especially the first) are most important. Any ideas would be appreciated.
Thanks
samiOk I tried it out, DOM with document style web
service is not working in WLS 7.0.2. I filed
CR104719. Please contact support with this case
number to get a patch.
Sorry for the trouble.
http://manojc.com
"sami titi" <[email protected]> wrote in message
news:[email protected]...
>
We're using WLS7 SP2, patch: CR102544_70sp2_v2.jar
thanks
"manoj cheenath" <[email protected]> wrote:
Quick question, before i try this out.
Which version of WLS? SP?
http://manojc.com
"sami titi" <[email protected]> wrote in message
news:[email protected]...
We have three issues when trying to implement a document-style service.I
will
document them all but I'd suggest you go through them all beforeattempting to
answer any of them.
We are trying to implement a service that has the following signature:
public void echoDom(Document doc)
We want the delivery of our message to be of style ("document").Therefore, we
modified our servicegen entry to include the style="document" underthe
service.
It looks like the following:
<servicegen
destEar="${appDir}/dom.ear"
warName="dom.war">
<service
javaClassComponents="examples.dom.EchoDom"
targetNamespace="http://examples.org"
serviceName="dom"
serviceURI="/EchoDomService"
generateTypes="True"
expandMethods="True"
style="document">
<client
packageName="examples.dom"
clientJarName="client.jar"
/>
</service>
<classpath>
<pathelement path="${temp_dir}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</servicegen>
1. FIRST PROBLEM:
The first problem we're having is that it does not compile with thecombination
of our signature being of type void (as shown above) and thestyle="document"
in build.xml.
The error is the following:
[servicegen] Generating service "dom" ...
[servicegen] Generating XML types and serializers from java classes(examples.do
m.EchoDom) ...
[servicegen] weblogic.utils.AssertionError: ***** ASSERTION FAILED*****[ void:
null ]
[servicegen] at weblogic.utils.Debug.assertion(Debug.java:84)
[servicegen] atweblogic.xml.schema.binding.internal.codegen.Compiler.compile
(Compiler.java:111)
[servicegen] atweblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
pClass(XSDTypeMappingBuilder.java:88)
[servicegen] atweblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
ddMapping(TypeMappingBuilderBase.java:183)
[servicegen] atweblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper
mapComponent(ComponentAutoTyper.java:155)
[servicegen] atweblogic.ant.taskdefs.webservices.autotype.JavaAutoTyper.run(
JavaAutoTyper.java:80)
[servicegen] atweblogic.ant.taskdefs.webservices.autotype.AutoTypeTask.execu
te(AutoTypeTask.java:353)
[servicegen] atweblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
enerateService(ServiceGenTask.java:251)
[servicegen] atweblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
xecute(ServiceGenTask.java:146)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:217)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:164)
[servicegen] atorg.apache.tools.ant.Target.performTasks(Target.java:182)
[servicegen] atorg.apache.tools.ant.Project.executeTarget(Project.java:601)
[servicegen] atorg.apache.tools.ant.Project.executeTargets(Project.java:560)
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:454)
[servicegen] at org.apache.tools.ant.Main.start(Main.java:153)
[servicegen] at org.apache.tools.ant.Main.main(Main.java:176)
2. SECOND PROBLEM
If we change the signature to become:
public Document echoDom(Document doc)
then the build works but when we try to test our service, it givesus the
following:
[java] java.rmi.RemoteException: web service invoke failed; nestedexceptio
n is:
[java] javax.xml.soap.SOAPException: failed to serializexml:weblogic.
xml.schema.binding.SerializationException: type mapping lookup failureon
class=
class weblogic.apache.xerces.dom.DocumentImpl TypeMapping=TYPEMAPPINGSIZE=6
[java] ENTRY 1:
[java] class: org.w3c.dom.Document
[java] xsd_type: ['http://examples.org']:p3:echoDom
[java] ser:weblogic.xml.schema.binding.internal.builtin.DocumentCode
c@5973ea
[java] deser:weblogic.xml.schema.binding.internal.builtin.DocumentCode
c@49131c
[java] ENTRY 2:
[java] class: java.lang.Object
[java] xsd_type: ['http://examples.org']:p1:echoDomResponse
[java] ser:weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
5b99f
[java] deser:weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec@
3. THIRD PROBLEM:
Now, when we revert back to style="rpc" and everything works fine anddandy (although
not as we want it because, as I mentioned above, we want a void
signature
and
a document style), we get the following added tag around our body
content,
which
we did not add ourselves, nor are we sure yet why it shows up:
We pass it the following argument:
<those dummy="hi">
<this xmlns="mynamespace">
<f:that xmlns:f="yournamespace">
<or> a lot of random < </or>
<f:the>
</f:the>
<f:other> foo bar blaz</f:other>
</f:that>
</this>
</those>
We get the following (notice the <document> tag around it):
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<m:echoDom xmlns:m="http://examples.org"
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<document>
<those dummy="hi">
<this xmlns="mynamespace">
<f:that xmlns:f="yournamespace">
<or> a lot of random < </or>
<f:the>
</f:the>
<f:other> foo bar blaz</f:other>
</f:that>
</this>
</those>
</document>
</m:echoDom>
</env:Body>
</env:Envelope>
4. PROBLEM FOUR (just remembered this one):
If we use the standard test page (provided with WLS), with (3) above,it
chops
off the "those" and it still wraps it within this new <document>
element
as show
below:
<!--REQUEST.................-->
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header>
</env:Header>
<env:Body>
<m:echoDom xmlns:m="http://examples.org"
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<document>
<this xmlns="mynamespace">
<f:that xmlns:f="yournamespace">
<or> a lot of random < </or>
<f:the>
</f:the>
<f:other> foo bar blaz</f:other>
</f:that>
</this>
</document>
</m:echoDom>
</env:Body>
</env:Envelope>
We're not so worried about the fourth because it seems like a bug butthe
first
three (especially the first) are most important. Any ideas would beappreciated.
Thanks
sami -
Weblogic Service Invocation Error-Urgent help required.
failed to invoke operation 'searchCustomerDetails' due to an error in the soap layer (SAAJ); nested exception is: Message[ failed to serialize class java.lang.Objectweblogic.xml.schema.binding.SerializationException: type mapping lookup failure on class=class org.apache.xerces.dom.DeferredDocumentImpl TypeMapping=TYPEMAPPING SIZE=0
]StackTrace[
javax.xml.soap.SOAPException: failed to serialize class java.lang.Objectweblogic.xml.schema.binding.SerializationException: type mapping lookup failure on class=class org.apache.xerces.dom.DeferredDocumentImpl TypeMapping=TYPEMAPPING SIZE=0
at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:332)
at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
at weblogic.webservice.core.DefaultMessage.toXML(DefHello,
are you sure you have setup the ADSUser in the ADSProxy correctly for the webdynpro?
Copy from the Config Guide:
Procedure
To set up Basic Authentication in a Java environment:
1. Log on to the Visual Administrator. (See How to Start the Visual Administrator [Seite 54]) . 2. On the Cluster tab, choose Server <x> → Services → Web Services Security
3. Choose Web Service Clients → sap.com > tcwdpdfobject → com.sap.tc.webdynpro.adsproxy.AdsProxy*ConfigPort_Document.
4. From the Authentication list, select BASIC.
Adobe Document Services Configuration Guide - 22 -
Adobe Document Services Configuration for SAP Web AS 7.0
ADSUser 5. In the User and boxes, enter as Username and a Password. Password
6. Choose Save.
7. The authentication data must be activated. For doing this navigate to Services → Deploy.
8. Choose the button Application.
9. Choose sap.com/tcwdpdfobject in the tree.
10. Choose Stop Application.
11. For restarting the application choose . Start Application
Best regards,
Dezso -
First I would love a dynamic client example that actualy used the wsdl type generated by Workshop. BEA's example is using the "URN:" format not using their own format.
I havent been able to get the example dynamic client to work yet against their generated wsdl for my simple method
which has no inputs or outputs.
I am getting the following error and need help, Im not sure where to go from here.
Any pointers would be very welcome.
ERROR{
javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAP
Elementweblogic.xml.schema.binding.SerializationException: mapping lookup failur
e. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{sc
hemaType=['http://www.openuri.org/']:test}
at weblogic.webservice.core.DefaultPart.invokeSerializer(Ljavax/xml/soap
/SOAPElement;Ljava/lang/Object;Lweblogic/xml/stream/XMLOutputStream;Lweblogic/xm
l/schema/binding/SerializationContext;)V(DefaultPart.java:332)
at weblogic.webservice.core.DefaultPart.toXML(Ljavax/xml/soap/SOAPElemen
t;Ljava/lang/Object;Lweblogic/xml/schema/binding/SerializationContext;ZLjavax/xm
l/rpc/encoding/TypeMapping;)V(DefaultPart.java:297)
target service{
package testset;
* @editor-info:link autogen-style="stateless" source="TestImpl.jcs" autogen="true"
public class TestTest implements com.bea.jws.WebService
static final long serialVersionUID = 1L;
/** @common:control */
public testset.Test test;
/** @common:operation
public void test()
{ test.test(); }
Client {
public void run(String wsdl_url,String service_url,String namespace,String jws_name,String conn_port,String operation,String[] args) throws Exception {
// Setup the global SAAJ message factory
System.setProperty("javax.xml.soap.MessageFactory",
"weblogic.webservice.core.soap.MessageFactoryImpl");
// Setup the global JAX-RPC service factory
System.setProperty( "javax.xml.rpc.ServiceFactory",
"weblogic.webservice.core.rpc.ServiceFactoryImpl");
// create service factory
ServiceFactory factory = ServiceFactory.newInstance();
if (service_url.length() == 0){
service_url = "http://www.themindelectric.com/wsdl/";
if (namespace.length() == 0){
namespace = "net.xmethods.services.stockquote.StockQuote";
if (wsdl_url.length() == 0){
wsdl_url = "http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl";
if (operation.length() == 0){
operation = "getQuote";
if (jws_name.length() == 0){
jws_name = namespace+"Service";
if (conn_port.length() == 0){
conn_port = namespace+"Port";
// define qnames
String targetNamespace = service_url+namespace+"/";
QName serviceName =
new QName(targetNamespace,
jws_name);
QName portName =
new QName(targetNamespace,
conn_port);
QName operationName = new QName(targetNamespace,
operation);
URL wsdlLocation =
new URL(wsdl_url);
//new URL("http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl");
// create service
Service service = factory.createService(wsdlLocation, serviceName);
// create call
Call call = service.createCall(portName, operationName);
// invoke the remote web service
Float result = (Float) call.invoke(args);
System.out.println("\n");
System.out.println("This example shows how to create a dynamic client"+
"application that invokes a non-WebLogic Web Service.");
System.out.println("The webservice used was:"+
"http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl");
System.out.println("The quote for BEAS is: ");
System.out.println(result);
}Hi,
When I add a valueChangeListener for the App selection, the method is called before the ExecuteWithParams action is run. This means that I cannot get the new value for the Table selection list. And since I never know both the value of App and the value of Table, I cannot force the dynamic table to refresh.
did you try to execute the query within the managed bean and then access the iterator to obtain the value ?
Frank -
I modified the EchoDom example (http://webservice.bea.com/dom.zip) client to be
dynamic (with WSDL) and deployed the service as a document type service. The ear
file is deployed correctly and I am able to execute the service from the URL without
any errors. However when I run the dynamic client, I see the following exception
trace. I see a similar error (serialization fails on class weblogic.apache.xerces.dom.DocumentImpl)
when I deploy the service as rpc. What am I doing incorrectly? Please help.
Sriram
run:
[java] javax.xml.rpc.JAXRPCException: failed to invoke operation 'echoDom
' due to an error in the soap layer (SAAJ); nested exception is: Message[ failed
to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.Se
rializationException: mapping lookup failure. class=interface javax.xml.soap.SOA
PElement class context=TypedClassContext{schemaType=['http://examples.org']:echo
Dom}]StackTrace[
[java]
[java] javax.xml.soap.SOAPException: failed to serialize interface javax.x
ml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping
l
ookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedCla
ssContext{schemaType=['http://examples.org']:echoDom}
[java] at weblogic.webservice.core.DefaultPart.invokeSerializer(Default
Part.java:328)
[java] at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:2
97)
[java] at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.
java:619)
[java] at weblogic.webservice.core.ClientDispatcher.send(ClientDispatch
er.java:206)
[java] at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDisp
atcher.java:143)
[java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOpera
tion.java:444)
[java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOpera
tion.java:430)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:53
9)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:39
2)
[java] at examples.dom.Client.diiCall(Client.java:132)
[java] at examples.dom.Client.main(Client.java:164)
[java] Caused by: weblogic.xml.schema.binding.SerializationException: mappi
ng lookup failure. class=interface javax.xml.soap.SOAPElement class context=Type
dClassContext{schemaType=['http://examples.org']:echoDom}
[java] at weblogic.xml.schema.binding.RuntimeUtils.lookup_serializer(Ru
ntimeUtils.java:151)
[java] at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(Ru
ntimeUtils.java:187)
[java] at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(Ru
ntimeUtils.java:174)
[java] at weblogic.webservice.core.DefaultPart.invokeSerializer(Default
Part.java:324)
[java] ... 10 more
[java] ]
[java]
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:55
9)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:39
2)
[java] at examples.dom.Client.diiCall(Client.java:132)
[java] at examples.dom.Client.main(Client.java:164)
[java] Exception in thread "main"
[java] Java Result: 1Hi Bruce,
I made the changes that you suggested. It didn't work. I still see the same deserialization
exception.
Sriram
Bruce Stephens <[email protected]> wrote:
Hi,
Try this format in your dynamic client:
call.setProperty("javax.xml.rpc.security.auth.username", "username");
call.setProperty("javax.xml.rpc.security.auth.password", "password");
HTHs,
Bruce
Sriram Chavali wrote:
If I had a weblogic security role enforcement in place for my WS EJB,how do I
pass the user credentials from a dynamic client? I set the USERNAME_PROPERTYand
PASSWORD_PROPERTY properties on the Call, but I see a deserializationerror on
the response and the SOAPElement interface.
A static client works fine when I pass the user credentials from thegetMyWSPort(String,
String) call.
Please help,
Sriram
"Sriram Chavali" <[email protected]> wrote:
Hi Bruce,
It worked perfectly.
Thanks for your help
Sriram
Bruce Stephens <[email protected]> wrote:
Hi Sriram,
OK, we are getting close. It looks like the problem is with the
helloComplexWorldResponse so looking at the client, I would change
the
invoke to look something like this:
String result = (String) call.invoke(new Object[] {doc});
If that still has problems, then try it without the return, i.e.make
it
a void return in the HelloWorldServiceEJB.java and go from there.
Regards,
Bruce
Sriram Chavali wrote:
Hi Brue,
Your example works fine for me. I am building an EJB implementationthat follows
your example where I see the error. The attached zip file has the
server
and client
(dynamic, which follows your example). The build file is build1.xml.
Thanks
Sriram
Bruce Stephens <[email protected]> wrote:
Hi Sriram,
hmmm...the sample I provided sends a Document with a dynamic client,
so
I'm confused as to where/why you are still seeing the same failure
as
the original post. Would you go back and look carefully at the
client
code (ClientHotelDyn.java) and note two important features:
1) adding the call.setProperty(Call.OPERATION_STYLE_PROPERTY,
"document");
2) adding the typemapping for the Document
If you are still experiencing problems, please post your codeand/or
open a dialog with our super support team: http://support.bea.com
or
[email protected]
Thanks,
Bruce
Hi Bruce,
The consumers for the service that I am building will be non-java
clients.
I wish
to demonstrate a reference implementation for them without using
the
generated
client side classes and hence the dynamic client.
Thanks for your example code. It worked fine. Just to add a
twist
to
your latest
example, I modified sample10 from Manoj's website (an EJB example)to accept an
org.w3c.dom.Document. I took your build file and tailored it
to
building
the sample10
and it worked fine for a static client, however when I modified
the
client to
be dynamic, I see the trace pasted at the end of this message.
Any
suggestions
run:
[java] javax.xml.rpc.JAXRPCException: failed to invoke
operation
'helloComp
lexWorld' due to an error in the soap layer (SAAJ); nested exceptionis: Message
[failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException:
mapping lookup failure for xml type ['http://www.bea.com/servers/wls70/samples/
examples/webservices/basic/javaclass']:helloComplexWorldResponse
and
java interf
ace javax.xml.soap.SOAPElement]StackTrace[
[java]
[java] javax.xml.soap.SOAPException: failed to deserialize
xml:weblogic.xml
schema.binding.DeserializationException: mapping lookup failurefor
xml type
http://www.bea.com/servers/wls70/samples/examples/webservices/basic/javaclass']:
helloComplexWorldResponse and java interface javax.xml.soap.SOAPElement
[java] at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:
389)
[java] at weblogic.webservice.core.DefaultMessage.toJava(DefaultMessage
java:458)
[java] at weblogic.webservice.core.ClientDispatcher.receive(ClientDispa
tcher.java:297)
[java] at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDisp
atcher.java:144)
[java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOpera
tion.java:444)
[java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOpera
tion.java:430)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:53
9)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:39
2)
[java] at tutorial.sample10.client.Main.<init>(Main.java:105)
[java] at tutorial.sample10.client.Main.main(Main.java:40)
[java] Caused by: weblogic.xml.schema.binding.DeserializationException:map
ping lookup failure for xml type ['http://www.bea.com/servers/wls70/samples/exam
ples/webservices/basic/javaclass']:helloComplexWorldResponse
and
java
interface
javax.xml.soap.SOAPElement
[java] at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(
RuntimeUtils.java:325)
[java] at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:
384)
[java] ... 9 more
[java] ]
[java]
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:55
9)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:39
2)
[java] at tutorial.sample10.client.Main.<init>(Main.java:105)
[java] at tutorial.sample10.client.Main.main(Main.java:40)
BUILD SUCCESSFUL
Thanks
Sriram
Bruce Stephens <[email protected]> wrote:
Hi Sriram,
Give this example a spin and see if it fits your needs.
Just curious, why do you need to have a dynamic client?
Thanks,
Bruce
Sriram Chavali wrote:
I am using WLS 8.1 on Windows XP.
Sriram
"Sriram Chavali" <[email protected]> wrote:
I modified the EchoDom example (http://webservice.bea.com/dom.zip)
client
to be
dynamic (with WSDL) and deployed the service as a document
type
service.
The ear
file is deployed correctly and I am able to execute the
service
from
the URL without
any errors. However when I run the dynamic client, I see
the
following
exception
trace. I see a similar error (serialization fails on class
weblogic.apache.xerces.dom.DocumentImpl)
when I deploy the service as rpc. What am I doing incorrectly?Please
help.
Sriram
run:
[java] javax.xml.rpc.JAXRPCException: failed to invoke
operation
'echoDom
' due to an error in the soap layer (SAAJ); nested exceptionis:
Message[
failed
to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.Se
rializationException: mapping lookup failure. class=interface
javax.xml.soap.SOA
PElement class context=TypedClassContext{schemaType=['http://examples.org']:echo
Dom}]StackTrace[
[java]
[java] javax.xml.soap.SOAPException: failed to serializeinterface
javax.x
ml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException:
mapping
l
ookup failure. class=interface javax.xml.soap.SOAPElement
class
context=TypedCla
ssContext{schemaType=['http://examples.org']:echoDom}
[java] at weblogic.webservice.core.DefaultPart.invokeSerializer(Default
Part.java:328)
[java] at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:2
97)
[java] at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.
java:619)
[java] at weblogic.webservice.core.ClientDispatcher.send(ClientDispatch
er.java:206)
[java] at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDisp
atcher.java:143)
[java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOpera
tion.java:444)
[java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOpera
tion.java:430)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:53
9)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:39
2)
[java] at examples.dom.Client.diiCall(Client.java:132)
[java] at examples.dom.Client.main(Client.java:164)
[java] Caused by: weblogic.xml.schema.binding.SerializationException:
mappi
ng lookup failure. class=interface javax.xml.soap.SOAPElement
class
context=Type
dClassContext{schemaType=['http://examples.org']:echoDom}
[java] at weblogic.xml.schema.binding.RuntimeUtils.lookup_serializer(Ru
ntimeUtils.java:151)
[java] at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(Ru
ntimeUtils.java:187)
[java] at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(Ru
ntimeUtils.java:174)
[java] at weblogic.webservice.core.DefaultPart.invokeSerializer(Default
Part.java:324)
[java] ... 10 more
[java] ]
[java]
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:55
9)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:39
2)
[java] at examples.dom.Client.diiCall(Client.java:132)
[java] at examples.dom.Client.main(Client.java:164)
[java] Exception in thread "main"
[java] Java Result: 1
Name: sample10.zip
sample10.zip Type: Zip Compressed Data (application/x-zip-compressed)
Encoding: base64
Maybe you are looking for
-
Cannot print with Canon LBP7200
Hi, I have two network printers in my office. One Canon iR1024iF that i could install after reading your posts of the UFRII 1020 Driver and a second one (Canon LBP7200) that is causing some headhaches to me trying to find any solution... Anyone that
-
Windows 8 Installation DVD not recognized by TouchSmart 600
I am trying to install Windows 8 on my TouchSmart 600-1305t PC (Product #: XL730AV#ABA ). The problem is that my computer does not recognize the Windows 8 installation DVD I purchased. Is there a solution to this problem? I would ideally like to dual
-
Fonts in illustrator for online
hi - I work in illustrator and use regular fonts for exporting .gif graphics for use on web browsers - should I be using specific web fonts? This is not for websites but documents viewed on screen. Mainly Times Roman and Arial. So far they look okay
-
Thumbnails dont match slideshow photos.
When I make a new slideshow (manually) the thumbnails shown at the botttom are quite different from the photos showing in the slideshow. -Some are completely different -some have some of the same photos as the slideshow and some different ones -but
-
ANN: Tutorial on Replacing Multiple or Single Templates in DW on Child Pages
FYI: this article is available for free reprints, as long as guidelines are followed: http://www.petersonsales.net/tutorial1.php Replacing Old Website Templates in Dreamweaver One of the most difficult tasks for a web designer is updating legacy webs