Fault in invoke webservice method
Hi!
I've created WS (J2EE 1.4) for PL\SQL package using JDEV 10g.
It seem run ok
I have accessed in browser to
http://XXX.XXX.XXX.XXX:8988/Application1-Project1-context-root/Test
The methods are run well in web form.
Then i've, created simple soap client in Delphi 8, and get error in execute method!
Same Delphi client works well on WS (J2EE 1.3) for same PL\SQL package.
Changing message format (Literal\Rpc) and change Soap binding didn't get any result.
Hi,
Not sure about the way you create client with Delphi. Maybe, using rpc-literal in the soap binding was not enought to get the same client working for both J2EE 1.3 and J2EE 1.4 versions of the PL/SQL web services.
There may be some differences in the namespaces generated and also the type of schema generated (qualified vs. unqualified).
You should take the time to compare the 2 WSDL files, then make the equivalent set of changes to your Delphi client. Another option that may even be better for you is to generate a client for each WSDL with Delphi.
Hope this helps,
Eric
Similar Messages
-
Problem while invoking webservice-method in client-code
Hi,
I had written webservice-client-code (using uddi-ext.jar, as i am using uddi for publishing webservices.) which is invoking webservice method successfully with complex datatypes(both for return type and input paramters).
But while calling following webservice-method from my client-code:
public ComplexType[] getData(String[] p_str1, String[] p_str2)
it is throwing exception
The Exception is:
[ERROR] - 27 Mar 2007 12:34:38 -failed to invoke operation 'getData' due to an error in the soap layer (SAAJ); nested exception is: Message[failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException: mapping lookup failure. type=['java:language_builtins.lang']:ArrayOfString schema context=TypedSchemaContext{javaType=[Ljava.lang.String;}]
Although I had done correct registration of mapping of ArrayOfString in client-code:
registry = m_Service.getTypeMappingRegistry();
m_TypeMapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING );
m_TypeMapping.register( ArrayOfStringHolder.class,
new QName( "java:language_builtins.lang", "ArrayOfString" ),
new ArrayOfStringCodec(),
new ArrayOfStringCodec());
But some how it doesnt works.
I had searched on google as well but didnt find any reliable solutions.
Please advice.
Edited by meetmrdeepak at 03/27/2007 2:43 AM
Edited by meetmrdeepak at 03/27/2007 2:45 AMSee item A.1 of the [RMI FAQ|http://java.sun.com/j2se/1.5.0/docs/guide/rmi/faq.html].
-
Access Denied Error While invoking WebService Method
Hi,
When i am trying to invoke web service method from client machine, it throws an Error 401 - Access Denied (Detail Error Shown below)....
Please let me know to set WindowsAuthentication UserName and Password in WebService calling through Java. Here Iam using Stub class to connect WebService through Java...
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (401)Access Denied
faultActor:
faultNode:
faultDetail:
{}:return code: 401
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html dir=ltr>
<head>
<style>
a:link {font:8pt/11pt verdana; color:FF0000}
a:visited {font:8pt/11pt verdana; color:#4e4e4e}
</style>
<META NAME="ROBOTS" CONTENT="NOINDEX">
<title>You are not authorized to view this page</title>
<META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
</head>
<script>
function Homepage(){
<!--
// in real bits, urls get returned to our script like this:
// res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm
//For testing use DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
DocURL=document.URL;
//this is where the http or https will be, as found by searching for :// but skipping the res://
protocolIndex=DocURL.indexOf("://",4);
//this finds the ending slash for the domain server
serverIndex=DocURL.indexOf("/",protocolIndex + 3);
//for the href, we need a valid URL to the domain. We search for the # symbol to find the begining
//of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.
//urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
BeginURL=DocURL.indexOf("#",1) + 1;
urlresult=DocURL.substring(BeginURL,serverIndex);
//for display, we need to skip after http://, and go to the next slash
displayresult=DocURL.substring(protocolIndex + 3 ,serverIndex);
InsertElementAnchor(urlresult, displayresult);
function HtmlEncode(text)
return text.replace(/&/g, '&').replace(/'/g, '"').replace(/</g, '<').replace(/>/g, '>');
function TagAttrib(name, value)
return ' '+name+'="'+HtmlEncode(value)+'"';
function PrintTag(tagName, needCloseTag, attrib, inner){
document.write( '<' + tagName + attrib + '>' + HtmlEncode(inner) );
if (needCloseTag) document.write( '</' + tagName +'>' );
function URI(href)
IEVer = window.navigator.appVersion;
IEVer = IEVer.substr( IEVer.indexOf('MSIE') + 5, 3 );
return (IEVer.charAt(1)=='.' && IEVer >= '5.5') ?
encodeURI(href) :
escape(href).replace(/%3A/g, ':').replace(/%3B/g, ';');
function InsertElementAnchor(href, text)
PrintTag('A', true, TagAttrib('HREF', URI(href)), text);
//-->
</script>
<body bgcolor="FFFFFF">
<table width="410" cellpadding="3" cellspacing="5">
<tr>
<td align="left" valign="middle" width="360">
<h1 style="COLOR:000000; FONT: 13pt/15pt verdana"><!--Problem-->You are not authorized to view this page</h1>
</td>
</tr>
<tr>
<td width="400" colspan="2">
<font style="COLOR:000000; FONT: 8pt/11pt verdana">You do not have permission to view this directory or page using the credentials you supplied.</font></td>
</tr>
<tr>
<td width="400" colspan="2">
<font style="COLOR:000000; FONT: 8pt/11pt verdana">
<hr color="#C0C0C0" noshade>
<p>Please try the following:</p>
<ul>
<li>Click the Refresh button to try again with different credentials.</li>
<li>If you believe you should be able to view this directory or page, please contact the Web site administrator by using the e-mail address or phone number listed on the
<script>
<!--
if (!((window.navigator.userAgent.indexOf("MSIE") > 0) && (window.navigator.appVersion.charAt(0) == "2")))
Homepage();
//-->
</script>
home page.</li>
</ul>
<h2 style="font:8pt/11pt verdana; color:000000">HTTP 401.2 - Unauthorized: Logon failed due to server configuration<br>
Internet Information Services</h2>
<hr color="#C0C0C0" noshade>
<p>Technical Information (for support personnel)</p>
<ul>
<li>Background:<br>
This is usually caused by a server-side script not sending the proper WWW-Authenticate header field. Using Active Server Pages scripting this is done by using the <strong>AddHeader</strong> method of the <strong>Response</strong> object to request that the client use a certain authentication method to access the resource.
<p>
<li>More information:<br>
Microsoft Support
</li>
</p>
</ul>
</font></td>
</tr>
</table>
</body>
</html>
{http://xml.apache.org/axis/}HttpErrorCode:401
(401)Access Denied
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at engine.citynet_dta.IDTAEngineStub.sendMessage(IDTAEngineStub.java:219)
at test.Test.main(Test.java:37)I hope the sun forum can help for me. Lets see
-
Error while invoking webservice throu https
Error while invoking webservice throu https://
can any one help me on this topic please:
CODE:
SOAPConnection con = null;
try{
String endpoint = "https://wks3089639:4565/Service.serviceagent/PortTypeEndpoint1";
//String endpoint = "http://wks3101999:5539/Service.serviceagent/PortTypeEndpoint1";
//String endpoint = args[0];
//String soapAction = args[1];
System.out.println("javax.net.ssl.keyStore-->"+System.getProperty("javax.net.ssl.trustStore"));
System.setProperty("javax.net.ssl.trustStore","C:/Documents and Settings/1067555/Desktop/certificates/cer.jks");
System.setProperty("javax.net.ssl.keyStore","C:/Documents and Settings/1067555/Desktop/certificates/server.keystore");
System.setProperty("javax.net.ssl.trustStorePassword","password");
System.setProperty("javax.net.ssl.keyStorePassword","password");
// use Sun's reference implementation of a URL handler for the "https" URL protocol type.
//System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
// dynamically register sun's ssl provider
System.setProperty("security.provider","com.sun.net.ssl.internal.ssl.Provider");
//Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
System.out.println("javax.net.ssl.trustStore-->"+System.getProperty("javax.net.ssl.trustStore"));
System.setProperty("javax.net.debug","ssl,handshake");
SOAPConnectionFactory connectionFactory = SOAPConnectionFactory.newInstance();
con = connectionFactory.createConnection();
MessageFactory messageFactory = MessageFactory.newInstance();
SOAPMessage message = messageFactory.createMessage();
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPBody body = envelope.getBody();
// MimeHeaders headers = message.getMimeHeaders();
// headers.addHeader("SOAPAction", soapAction);
// headers.addHeader("SOAPAction", "/Service.serviceagent/PortTypeEndpoint1/Operation");
// headers.addHeader("Content-Type","text/xml");
// headers.addHeader("charset","utf-8");
MimeHeaders headers = message.getMimeHeaders();
headers.addHeader("SOAPAction", "/Service.serviceagent/PortTypeEndpoint1/sampleOperation");
headers.addHeader("Content-Type","text/xml");
headers.addHeader("charset","utf-8");
StreamSource inputmsg = new StreamSource(new FileInputStream("client.wsdl"));
soapPart.setContent(inputmsg);
System.out.println("REQUEST:\n");
message.writeTo(System.out);
System.out.println();
message.saveChanges();
SOAPMessage reply = con.call(message, new URL(endpoint));
System.out.println("RESPONSE:\n"+reply.toString());
System.out.println("Header:::"+reply.getSOAPHeader());
System.out.println("Body:::"+reply.getSOAPBody());
System.out.println("RESPONSE:\n");
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
//Extract the content of the reply
Source responseContent = reply.getSOAPPart().getContent();
//Set the output for the transformation
StreamResult result = new StreamResult(System.out);
transformer.transform(responseContent, result);
System.out.println();
}catch(Exception e){
e.printStackTrace();
finally{
con.close();
Exception:
10-Nov-2008 11:55:04 com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post
SEVERE: SAAJ0009: Message send failed
com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:127)
at com.Sample.main(Sample.java:91)
Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
... 1 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:325)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:150)
... 3 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:282)
... 4 more
CAUSE:
java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
at com.Sample.main(Sample.java:91)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:325)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:150)
... 3 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:282)
... 4 more
CAUSE:
java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
at com.Sample.main(Sample.java:91)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Message send failed
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:325)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:150)
... 3 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:282)
... 4 more
Edited by: javausers07 on Nov 10, 2008 11:58 AMI hope the sun forum can help for me. Lets see
-
How do you invoke a method with native int array argument?
Hi,
Will someone help me to show me a few codes samples on how to invoke a method which has only one argument, an int [] array.
For exampe:
public void Method1(int [] intArray) {...};
Here is some simple code fragment I used:
Class<?> aClass = Class.forName("Test2");
Class[] argTypes = new Class[] {int[].class};
Method method = aClass.getDeclaredMethod("Method_1", argTypes);
int [] intArray = new int[] {111, 222, 333};
Object [] args = new Object[1];
args[0] = Array.newInstance(int.class, intArray);
method.invoke(aClass, args);I can compile without any error, but when runs, it died in the "invoke" statement with:
Exception in thread "main" java.lang.IllegalArgumentException: object is not an instance of declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at Test1.invoke_Method_1(Test1.java:262)
at Test1.start(Test1.java:33)
at Test1.main(Test1.java:12)
Any help is greatly appreciated!
JeffSorry, my bad. I was able to invoke static methods and instance methods with all data types except native int, short, double and float, not sure the proper ways to declare them.
After many frustrating hours, I posted the message for help, but at that time, my mind was so numb that I created a faulted example because I cut and pasted the static method invocation example to test the instance method passing int array argument.
As your post suggested, "args[0] = intArray;", that works. Thanks!
You know, I did tried passing the argument like that first, but because I was not declaring the type properly, I ended up messing up the actual passing as well as the instantiation step.
I will honestly slap my hand three times.
jml -
Exception while invoking webservice
I have created a client jar containing stub and port classe, deployment descritor
and deployed webservices. Webservices are working fine but while invoking webservice
with client code i am getting Exception, can somebody please help me to resolve
it ?
[2004-02-09 02:21:53,917] [ExecuteThread: '14' for queue: 'weblogic.kernel.Default']
ERROR [testclient.TestServlet] Error in call object:SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:
Exception during processing: java.io.IOException: Received a response from url:
http://localhost:7001/ipc-ws which did not have a valid SOAP content-type: text/html.
(see Fault Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
</bea_fault:stacktrace>java.io.IOException: Received a response from url: http://localhost:7001/ipc-ws
which did not have a valid SOAP content-type: text/html.
at weblogic.webservice.binding.http11.Http11ClientBinding.handleErrorResponse(Http11ClientBinding.java:156)
at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Http11ClientBinding.java:220)
at weblogic.webservice.core.handler.ClientHandler.handleResponse(ClientHandler.java:63)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:184)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:214)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:425)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:275)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:250)
at com.hp.ws.testclient.CreateConfigPort_Stub.createConfig(CreateConfigPort_Stub.java:26)
at com.hp.ws.testclient.TestServlet.callService(TestServlet.java:267)
at com.hp.ws.testclient.TestServlet.doPost(TestServlet.java:143)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305
Thanks
RatnakarHello,
There is not enough information in your post to determine an exact
cause. When you say the web services are working fine, do you mean from
the home/test page? What version of WLS? Is this with a static or
dynamic client. I'm a bit concerned about what seem to be stubs showing
up on the traceback that would indicate another SOAP stack (com.hp.ws)
could you tell us a bit more about your configuration.
Thanks,
Bruce
Ratnakar Katre wrote:
>
I have created a client jar containing stub and port classe, deployment descritor
and deployed webservices. Webservices are working fine but while invoking webservice
with client code i am getting Exception, can somebody please help me to resolve
it ?
[2004-02-09 02:21:53,917] [ExecuteThread: '14' for queue: 'weblogic.kernel.Default']
ERROR [testclient.TestServlet] Error in call object:SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:
Exception during processing: java.io.IOException: Received a response from url:
http://localhost:7001/ipc-ws which did not have a valid SOAP content-type: text/html.
(see Fault Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
</bea_fault:stacktrace>java.io.IOException: Received a response from url: http://localhost:7001/ipc-ws
which did not have a valid SOAP content-type: text/html.
at weblogic.webservice.binding.http11.Http11ClientBinding.handleErrorResponse(Http11ClientBinding.java:156)
at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Http11ClientBinding.java:220)
at weblogic.webservice.core.handler.ClientHandler.handleResponse(ClientHandler.java:63)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:184)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:214)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:425)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:275)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:250)
at com.hp.ws.testclient.CreateConfigPort_Stub.createConfig(CreateConfigPort_Stub.java:26)
at com.hp.ws.testclient.TestServlet.callService(TestServlet.java:267)
at com.hp.ws.testclient.TestServlet.doPost(TestServlet.java:143)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305
Thanks
Ratnakar -
Errors while invoking webservice
I am getting below error while invoking webservice in jdev:
<env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Failure in SDOSerializer.deserialize.</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
I can see only below log in jdev server log :
<oracle.adf.model> <SDOHelper> <findHelperContext> <SDOHelperContext identified by {http://xmlns.oracle.com/apps/projects/projectManagement/common/projectServiceV2/}ProjectService has not been defined yet!>
<oracle.adf.model> <SDOHelper> <findHelperContext> <SDOHelperContext identified by {http://xmlns.oracle.com/apps/projects/projectManagement/common/projectServiceV2/}ProjectService has not been defined yet!>
could anybody help me to understand what gone wrong ?This thread might help you:
Problems invoke Web Service -
Error while invoking ContactQueryPage method from contact.wsdl
Hi All,
Could any one provide me the java client for OnDemand webservice (contact.wsdl). I want to query ContactQueryPage operation.
I am facing some problem while making a call. I am trying with both Axis call as well as ContactStub. but its not working in either way.
Here is the snnipet I am using to invoke a method using ContactStub
String endpoint = "https://secure-ausomxdsa.crmondemand.com/Services/Integration;"+jessionId;
ContactStub stub = new ContactStub(endpoint);
ContactWS_ContactQueryPage_Output queryOutput = null;
ContactWS_ContactQueryPage_Input queryInput = new ContactWS_ContactQueryPage_Input();
ListOfContact listOfContact = new ListOfContact();
Contact contact = new Contact();
queryInput.setListOfContact(listOfContact);
queryInput.setUseChildAnd("Contact");
queryInput.setPageSize("10");
queryInput.setStartRowNum("1");
queryOutput = stub.ContactQueryPage(queryInput);
When I run the program..I get following exception :
org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers
Can any one help me out. Its needed urgently.
Thanks & Regards,
SanjayHi !
From what I see, the only problem is the setUseChildAnd function which is waiting for a true or false argument and not a char...
Hope this will help, feel free to ask more !
Max -
Error while invoking webservice
i am trying to use webservice (by using data->import
wsdl). I am sending request (invoking web method by using classes
generated after imporing wsdl).
Here is the code i m trying.
public function getCompanyInfoById(companyId:String):void
var wsNML:CampaignSettings =new CampaignSettings();
wsNML.addgetCompanyInfoByIdEventListener(getCompanyInfo);
//wsNML.addCampaignSettingsFaultEventListener(faultHandler);
wsNML.getCompanyInfoById(companyId);
private function
getCompanyInfo(e:GetCompanyInfoByIdResultEvent):void
var companyInfo:ArrayOfCampaignSettingsCDO=new
ArrayOfCampaignSettingsCDO();
companyInfo=e.result;
companyInfo.removeItemAt(0);
//logic continues....
the same code is working fine for my other web methods(for my
another web services). Also the same is working fine when i use the
same web service in some other project. but when i use this
webservice in my original project, its not working. its throwing
the following error:
"ReferenceError: Error #1065: Variable
ArrayOfCampaignSettingsCDO is not defined.
at global/flash.utils::getDefinitionByName()
at
mx.rpc.xml::SchemaTypeRegistry/getCollectionClass()[E:\dev\flex_3_beta3\sdk\frameworks\pr ojects\rpc\src\mx\rpc\xml\SchemaTypeRegistry.as:106]
at
mx.rpc.xml::XMLDecoder/createContent()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\sr c\mx\rpc\xml\XMLDecoder.as:1830]
at
mx.rpc.xml::XMLDecoder/decode()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rp c\xml\XMLDecoder.as:168]
at
mx.rpc.soap::SOAPDecoder/decodeBody()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src \mx\rpc\soap\SOAPDecoder.as:439]
at
mx.rpc.soap::SOAPDecoder/decodeEnvelope()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc \src\mx\rpc\soap\SOAPDecoder.as:291]
at
mx.rpc.soap::SOAPDecoder/decodeResponse()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc \src\mx\rpc\soap\SOAPDecoder.as:223]
at
generated.webservices::BaseCampaignSettings/processResult()[D:\Projects\NML2008\wsdl\gene rated\webservices\BaseCampaignSettings.as:411]
at
mx.rpc::AsyncResponder/result()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rp c\AsyncResponder.as:73]
at
mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx \rpc\AsyncRequest.as:81]
at
DirectHTTPMessageResponder/completeHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\ rpc\src\mx\messaging\channels\DirectHTTPChannel.as:387]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()"
Please help me out.hi kcell, thanks 4 ur help.
here is the wsdl:
<?xml version="1.0"
encoding="UTF-8"?><wsdl:definitions xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/"
xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:s="
http://www.w3.org/2001/XMLSchema"
xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soap12="
http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="
http://microsoft.com/wsdl/mime/textMatching/"
xmlns:tns="
http://tempuri.org/"
targetNamespace="">
http://tempuri.org/">
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="">
http://tempuri.org/">
<s:element name="GetCompanyInfoById">
<s:complexType>
<s:sequence>
<s:element maxOccurs="1" minOccurs="0" name="companyId"
type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetCompanyInfoByIdResponse">
<s:complexType>
<s:sequence>
<s:element maxOccurs="1" minOccurs="0"
name="GetCompanyInfoByIdResult"
type="tns:ArrayOfCampaignSettingsCDO"/>
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfCampaignSettingsCDO">
<s:sequence>
<s:element maxOccurs="unbounded" minOccurs="0"
name="CampaignSettingsCDO" nillable="true"
type="tns:CampaignSettingsCDO"/>
</s:sequence>
</s:complexType>
<s:complexType name="CampaignSettingsCDO">
<s:sequence>
<s:element maxOccurs="1" minOccurs="0" name="companyId"
type="s:string"/>
<s:element maxOccurs="1" minOccurs="0" name="companyName"
type="s:string"/>
<s:element maxOccurs="1" minOccurs="0"
name="companyAddress1" type="s:string"/>
<s:element maxOccurs="1" minOccurs="0"
name="companyAddress2" type="s:string"/>
<s:element maxOccurs="1" minOccurs="0" name="companyCity"
type="s:string"/>
<s:element maxOccurs="1" minOccurs="0" name="companyState"
type="s:string"/>
<s:element maxOccurs="1" minOccurs="0" name="companyZip"
type="s:string"/>
<s:element maxOccurs="1" minOccurs="0"
name="companyWebAddress" type="s:string"/>
<s:element maxOccurs="1" minOccurs="0" name="userId"
type="s:string"/>
<s:element maxOccurs="1" minOccurs="0" name="salutation"
type="s:string"/>
<s:element maxOccurs="1" minOccurs="0" name="firstName"
type="s:string"/>
<s:element maxOccurs="1" minOccurs="0" name="lastName"
type="s:string"/>
<s:element maxOccurs="1" minOccurs="0" name="title"
type="s:string"/>
<s:element maxOccurs="1" minOccurs="0" name="workPhone"
type="s:string"/>
<s:element maxOccurs="1" minOccurs="0" name="email"
type="s:string"/>
<s:element maxOccurs="1" minOccurs="0" name="password"
type="s:string"/>
</s:sequence>
</s:complexType>
</wsdl:types>
<wsdl:message name="GetCompanyInfoByIdSoapIn">
<wsdl:part element="tns:GetCompanyInfoById"
name="parameters">
</wsdl:part>
</wsdl:message>
<wsdl:message name="GetCompanyInfoByIdSoapOut">
<wsdl:part element="tns:GetCompanyInfoByIdResponse"
name="parameters">
</wsdl:part>
</wsdl:message>
<wsdl:operation name="GetCompanyInfoById">
<wsdl:input message="tns:GetCompanyInfoByIdSoapIn">
</wsdl:input>
<wsdl:output message="tns:GetCompanyInfoByIdSoapOut">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CampaignSettingsSoap12"
type="tns:CampaignSettingsSoap">
<soap12:binding transport="">
http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="GetCompanyInfoById">
<soap12:operation soapAction="
http://tempuri.org/GetCompanyInfoById"
style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetCompanyInfoById">
<soap:operation soapAction="
http://tempuri.org/GetCompanyInfoById"
style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CampaignSettings">
<wsdl:port binding="tns:CampaignSettingsSoap12"
name="CampaignSettingsSoap12">
<soap12:address location="">
http://localhost/NML/CampaignSettings.asmx"/>
</wsdl:port>
<wsdl:port binding="tns:CampaignSettingsSoap"
name="CampaignSettingsSoap">
<soap:address location="">
http://localhost/NML/CampaignSettings.asmx"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
regarding "Another question: why you use a temp
CampaignSettings variable in the getCompanyInfoById function?
Doesn´t it make sense to have the CampaignSettings
variable as member variable of the class (or as global member of
the app if you didn't use classes )" :
i am using the object of my webservice (object of the class
generated after importing WSDL) to invoke the webmethod.
Is there any other way for calling the webmethods.??
Also, the same code is working fine if i import the same
webservice in some other project, while its throwing the error in
this project.
Regards,
Shaveta -
Error while invoking Webservice API ItemService_GetItemInformation
The following error is encountered while invoking Webservice API "ItemService_GetItemInformation"
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<faultcode>wsse:InvalidSecurity</faultcode>
<faultstring>Missing <wsse:Security> in SOAP Header</faultstring>
<faultactor/>
</env:Fault>
</env:Body>
</env:Envelope>
Same is repeated even after passing
RESPONSIBILITY_NAME => Inventory
RESPONSIBILITY_APPL_NAME => INV
SECURITY_GROUP_NAME => Standard
NLS_LANGUAGE => AMERICAN
Any pointer for the root cause of this error & how to resolve this?
Thanks In Advance!
priyadarshiHi ..
The error meaning: you need input the user_name and password for the SOAPHeader -
Problems invoking a method from a web service
Am using netbeans 6.1 and my problem is when i invoke a method from a web service that has a custom class as a return type.
When I debug the client that consumes my web service, It get Stack in this line:
com.webservice.WebServiceInfoBean result = port.getWebServiceInfo(nameSpace, serviceName, portName, wsdlURL);
i don't get any error on the console.
static public void function1() {
try { // Call Web Service Operation
com.webservice.WebServiceMonitorService service = new com.webservice.WebServiceMonitorService();
com.webservice.WebServiceMonitor port = service.getWebServiceMonitorPort();
// TODO initialize WS operation arguments here
java.lang.String nameSpace = "NameSpaceHere";
java.lang.String serviceName = "WebServicePrueba";
java.lang.String portName = "Soap";
java.lang.String wsdlURL = "http://localhost/Prueba/WebServicePrueba.asmx?wsdl";
// TODO process result here
com.webservice.WebServiceInfoBean result = port.getWebServiceInfo(nameSpace, serviceName, portName, wsdlURL); // <--- here it stack
System.out.println("getWebServiceInfo");
Iterator i = result.getMethods().iterator();
while (i.hasNext()) {
MethodBean method = (MethodBean) i.next();
System.out.print("Nombre: " + method.getname());
System.out.print(" Returns: " + method.getreturnType());
Iterator j = method.getparameters().iterator();
while (j.hasNext()) {
ParameterBean parameter = (ParameterBean) j.next();
System.out.print(" ParameterName: " + parameter.getname());
System.out.print(" ParameterType: " + parameter.gettype());
System.out.print("\n");
System.out.print(method.getfirma());
System.out.print("\n");
System.out.print("\n");
} catch (Exception ex) {
ex.printStackTrace();
}Web Service side
* Web service operation
@WebMethod(operationName = "getWebServiceInfo")
public WebServiceInfoBean getWebServiceInfo(@WebParam(name = "nameSpace")
String nameSpace, @WebParam(name = "portName")
String portName, @WebParam(name = "serviceName")
String serviceName, @WebParam(name = "wsdlURL")
String wsdlURL) throws Throwable {
//TODO write your implementation code here:
webservicemonitor instance = new webservicemonitor();
return instance.getWebServiceInfo(nameSpace, serviceName, portName, wsdlURL);
}I have tested my internal code from the web service side and everything works fine. The problem occurs when i invoke it from a client side. probably I did not made the right serialization form my class WebServiceInfoBean? or am missing something. here it is:
* To change this template, choose Tools | Templates
* and open the template in the editor.
package com.beans;
import java.util.ArrayList;
* @author Tequila_Burp
public class WebServiceInfoBean implements java.io.Serializable {
* Holds value of property wsdlURL.
private String wsdlURL;
* Getter for property wsdlURL.
* @return Value of property wsdlURL.
public String getwsdlURL() {
return this.wsdlURL;
* Setter for property wsdlURL.
* @param wsdlURL New value of property wsdlURL.
public void setwsdlURL(String wsdlURL) {
this.wsdlURL = wsdlURL;
* Holds value of property namespace.
private String namespace;
* Getter for property namespace.
* @return Value of property namespace.
public String getnamespace() {
return this.namespace;
* Setter for property namespace.
* @param namespace New value of property namespace.
public void setnamespace(String namespace) {
this.namespace = namespace;
* Holds value of property serviceName.
private String serviceName;
* Getter for property serviceName.
* @return Value of property serviceName.
public String getserviceName() {
return this.serviceName;
* Setter for property serviceName.
* @param serviceName New value of property serviceName.
public void setserviceName(String serviceName) {
this.serviceName = serviceName;
* Holds value of property wsdlURL.
private String portName;
* Getter for property wsdlURL.
* @return Value of property wsdlURL.
public String getportName() {
return this.portName;
* Setter for property wsdlURL.
* @param wsdlURL New value of property wsdlURL.
public void setportName(String portName) {
this.portName = portName;
* Holds value of property methods.
private ArrayList methods = new ArrayList();
* Getter for property methods.
* @return Value of property methods.
public ArrayList getmethods() {
return this.methods;
* Setter for property methods.
* @param methods New value of property methods.
public void setmethods(ArrayList methods) {
this.methods = methods;
public MethodBean getMethod(int i) {
return (MethodBean)methods.get(i);
}by the way, everything has been worked on the same PC.Hi Paul,
This sound familiar, but I cannot at the moment locate a reference to
the issue. I would encourage you to seek the help of our super support
team [1].
Regards,
Bruce
[1]
http://support.bea.com
[email protected]
Paul Merrigan wrote:
>
I'm trying to invoke a secure 8.1 web service from a 6.1 client application and keep getting rejected with the following message:
Security Violation: User: '<anonymous>' has insufficient permission to access EJB:
In the 6.1 client, I've established a WebServiceProxy and set the userName and password to the proper values, but I can't seem to get past the security.
If there something special I need to do on either the 8.1 securing side or on the 6.1 accessing side to make this work?
Any help would be GREATLY appreciated. -
Faulted while invoking operation "sendEmailNotification"
Hi!
I've got a BPEL process and in the end of the process I send completion message by email.
This is working most of the times, but sometimes I've got a fault like this:
InvokeNotificationService (faulted)
[2010/10/07 13:38:02] Faulted while invoking operation "sendEmailNotification" on provider "NotificationService".less
-<messages>
-<input>
-<varNotificationReq>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="EmailPayload">
-<EmailPayload xmlns="" xmlns:def="http://xmlns.oracle.com/ias/pcbpel/NotificationService" xsi:type="def:EmailPayloadType" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FromAccountName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">Default
</FromAccountName>
<To xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">[email protected]
</To>
<ReplyToAddress xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
<Subject xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">BPEL Message
</Subject>
-<Content xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
<MimeType>text/html; charset=UTF-8
</MimeType>
<ContentBody>
Dear Customer,
<P>
Following order has been created in JD Edwards EnterpriseOne
<br>
Order Number: <b>18169</b>
<br>
Document Type: <b>SO</b>
<br>
</P>
<P>
Total Output Variable:
<br>
T787 OSE100W 101007702464520T7871064711T787 526 W 1EA87808878088960.00008960.001.0001041271EA010520T7871064711T787 526 W 2EA87808878088960.00008960.002.0001041271EA010520T7871064711T787 526 W 3EA87808878088960.00008960.003.0001041271EA010520T7871064711T787 526 W 4EA87808878088960.00008960.004.0001041271EA010520T7871064711T787 526 W 5EA87808878088960.00008960.005.0001041271EA010520T7871064711T787 526 W 6EA87808878088960.00008960.006.0001041271EA010520T7871064711T787 526 W 7EA87808878088960.00008960.007.0001041271EA010520T7871064711T787 526 W 8EA87808878088960.00008960.008.0001041271EA010EUR 2010-10-07T00:00:00.000+02:00 A 10B011816900010SO71680DE-30853 TOYOTA MAT. HAND. DEUTSCHLAND GMBH 104127 DE LANGENHAGEN Postfach 10 12 48
</P>
Best Regards,
<br>
Order Department
</ContentBody>
<ContentEncoding/>
</Content>
<EmailHeaders xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
<Cc xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
<Bcc xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
</EmailPayload>
</part>
</varNotificationReq>
</input>
-<fault>
-<NotificationServiceFault xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
-<part name="faultInfo">
<faultInfo>
Exception not handled by the Collaxa Cube system.
An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "ORABPEL-31002
Error while sending notification.
Error while sending notification.
Check the underlying exception and correct the error. Contact oracle support if error is not fixable.
at oracle.bpel.services.notification.queue.sender.Publisher.send(Publisher.java:346)
at oracle.bpel.services.notification.queue.sender.Publisher.send(Publisher.java:116)
at oracle.bpel.services.notification.ejb.impl.NotificationBean.sendEmailNotification(NotificationBean.java:329)
at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at NotificationServiceBean_LocalProxy_68d4144.sendEmailNotification(Unknown Source)
at oracle.tip.pc.services.notification.NotificationService.sendEmailNotification(NotificationService.java:365)
at oracle.tip.pc.services.notification.NotificationService.sendEmailNotification(NotificationService.java:343)
at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.collaxa.cube.ws.wsif.providers.java.WSIFOperation_Java.executeRequestResponseOperation(WSIFOperation_Java.java:1019)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:478)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:437)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:251)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:826)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:402)
at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:199)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3698)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1655)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:217)
at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:314)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5765)
at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1087)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke(CubeEngineBean.java:133)
at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke(CubeEngineBean.java:162)
at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiresNewInterceptor.invoke(TxRequiresNewInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at CubeEngineBean_LocalProxy_4bin6i8.syncCreateAndInvoke(Unknown Source)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyType(DeliveryHandler.java:547)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(DeliveryHandler.java:464)
at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHandler.java:133)
at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:95)
at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at DeliveryBean_RemoteProxy_4bin6i8.request(Unknown Source)
at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processNormalOperation(SOAPRequestProvider.java:451)
at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:274)
at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:120)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:956)
at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:466)
at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:194)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:400)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:414)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: ORABPEL-31005
Error while inerting notification in repository.
Error while inerting notification in repository.
Check the underlying exception and correct the error. Contact oracle support if error is not fixable.
at oracle.bpel.services.notification.repos.driver.oracle.OracleNotificationReposService.insertNotification(OracleNotificationReposService.java:140)
at oracle.bpel.services.notification.NotificationUtil.insertNotification(NotificationUtil.java:98)
at oracle.bpel.services.notification.queue.sender.Publisher.send(Publisher.java:316)
... 106 more
Caused by: java.sql.SQLException: javax.resource.ResourceException: RollbackException: Transaktionen har markerats för återställning: Timed out
at oracle.oc4j.sql.spi.ManagedConnectionImpl.setupTransaction(ManagedConnectionImpl.java:841)
at oracle.oc4j.sql.spi.ConnectionHandle.oc4j_intercept(ConnectionHandle.java:305)
at oracle_jdbc_driver_T4CConnection_Proxy.prepareStatement()
at oracle.bpel.services.notification.repos.driver.oracle.OracleNotificationReposService.insertNotification(OracleNotificationReposService.java:112)
... 108 more
Caused by: javax.resource.ResourceException: RollbackException: Transaktionen har markerats för återställning: Timed out
at com.evermind.server.connector.ConnectionContext.setupForJTATransaction(ConnectionContext.java:342)
at com.evermind.server.connector.ConnectionContext.setupForTransaction(ConnectionContext.java:279)
at com.evermind.server.connector.ConnectionContext.setupForTransaction(ConnectionContext.java:269)
at com.evermind.server.connector.ApplicationConnectionManager.lazyEnlist(ApplicationConnectionManager.java:2004)
at oracle.j2ee.connector.OracleConnectionManager.lazyEnlist(OracleConnectionManager.java:285)
at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.enlist(ManagedConnectionFactoryImpl.java:532)
at oracle.oc4j.sql.spi.ManagedConnectionImpl.setupTransaction(ManagedConnectionImpl.java:839)
... 111 more
Exception: ORABPEL-31002
Error while sending notification.
Error while sending notification.
Check the underlying exception and correct the error. Contact oracle support if error is not fixable.
Handled As: oracle.tip.pc.services.notification.NotificationServiceException
</faultInfo>
</part>
</NotificationServiceFault>
</fault>
</messages>
Have anybody experinced the same problem and can tell me what's wrong?
Thanks in advance,
Nickwould this post be of help ?
Email Error When using Wait activity -
BPM process interactive activity(JSP) - external webservice method interac
I am using Oracle BPM studio 10.3.1.0.
I have one external web service published on glassfish application server, I have introspected it in my BPM process using its WSDL.
Now one of my BPM process interactive activity is there, which is represented by one JSP, I am giving some input to my JSP.
I want this input to be passed to the web service method as a parameter, and it should fetch the output, so basically I want to invoke the web service method, could you please guide me how to do it?
Thanks & Regards
AshishHy Ashih
I dont know if this is best way to do that, but I have a similar situation here, and I'm using AJAX do call the webservice method by BPM and retrieve data.
Something like this:
1 - Create the XMLHttpRequest() object in your jsp (if you need I have the entire code)
2 - Create the a JavaScript method for to call the OBPM method in your component
function mymethod(arg1, arg2, arg3)
xmlhttp.onreadystatechange=function()
if( xmlhttp.readyState==4 )
document.getElementById("AnyDIV").innerHTML = xmlhttp.responseText;
var resp = "<f:invokeUrl var='YourComponenteName' methodName='YourMethodName'/>";
//Incude how many args your need here
resp+="&arg1=" + arg1;
resp+="&arg2=" + arg2;
resp+="&arg3=" + arg3;
xmlhttp.open("POST",resp,true);
xmlhttp.send(null);
3 - You'll need a div html tag called "AnyDIV" to receive the BPM answer
4 - On you BPM component, in YourMethodName method (needs to be ServerSide = no), create two args, the first is httpRequest type (name request), and the second is httpResponse type (name response) (fuego lib)
5 - Type the code below in your BPM method to send info back to the JSP
//getting the args
String arg1 = request.getParameter(string : "arg1");
String arg2 = request.getParameter(string : "arg2");
String arg3 = request.getParameter(string : "arg3");
//Do the webservice call here, prepare the html answer and put it into an string variable
strReturn = "bla bla bla";
//Send the anwser back to the jsp
response.bodyTextContent(arg1 : strReturn);
Or you can do this using xml answer and deal with the tags with javascript
that's it -
I am having an issue after I setup webservice, I am able to retrive column on the Datstore but when I test it to invoke webservice I am getting following error. I have checked the service, All the methods are available for invoking webservice. Any clue on this...........?
Just pasting part of error message..................
com.sunopsis.wsinvocation.SnpsWSInvocationException: java.lang.NoSuchMethodError: org.apache.axis2.AxisFault.makeFault(Ljava/lang/Exception;)Lorg/apache/axis2/AxisFault;
at com.sunopsis.wsinvocation.client.a.a.d.requestReply(d.java)
at com.sunopsis.graphical.wsclient.f.b(f.java)
at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NoSuchMethodError: org.apache.axis2.AxisFault.makeFault(Ljava/lang/Exception;)Lorg/apache/axis2/AxisFault;
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
Caused by:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: java.lang.NoSuchMethodError: org.apache.axis2.AxisFault.makeFault(Ljava/lang/Exception;)Lorg/apache/axis2/AxisFault;
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.lang.NoSuchMethodError: org.apache.axis2.AxisFault.makeFault(Ljava/lang/Exception;)Lorg/apache/axis2/AxisFault;
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)Yes ofcourse I choose a method. I am suspecting if we need any patches for OAS to get this thing fix. We are running OAS 10.3 and Axis2 1.3. Did any one use this combination and got this issue before??
-
Example of invoking webservices from browser
Hello,
I am totally new to webservices. I saw this posted in the discussion
WL 7.0 does allow you to access the web service through the browser. It even allows
you to invoke service methods with complex type arguments (.Net only supports
primitive types) and also to view the request and response soap message for the
invocation.
Where can I find an example ---A live example of using complex type from the test page:
http://65.193.192.35:7001/base/SoapInteropBaseService?operation.view=echoStr
uct
http://manojc.com
"pushpa krishna" <[email protected]> wrote in message
news:3ee4c2d7$[email protected]..
>
Hello,
I am totally new to webservices. I saw this posted in the discussion
WL 7.0 does allow you to access the web service through the browser. Iteven allows
you to invoke service methods with complex type arguments (.Net onlysupports
primitive types) and also to view the request and response soap messagefor the
invocation.
Where can I find an example ---
Maybe you are looking for
-
Adobe AIR 3.1 won't install on Win 7 x64
Hello Community, after spending hours of trying to install Adobe AIR I am giving up and asking the community for help. I tried all hints here in the forum but no succes. The installation fails in the msi part. Therefore i attached the AirInstall.log
-
HOW TO TRANSFER USER DEFINED TABLE DATA IN NEW DATABASE
Dear all , I am trying to transfer user defined table data,in new database ,can you please tell how i can do it
-
Is Dynamic Configuration possible with IDOC adapter.
Hi, I have SOAP to IDOC scenario. I have many SAP receivers and are determined at runtime in a Java map. Can i use Dynamic Configuration for IDOC adapter? Thanks Shakthi
-
Premiere Pro could not find any capable video...
And yes: I tried everything what was suggested at this Page: Error "Premiere Pro could not find any capable video play modules" | Startup So... Yesterday everything was fine, today nothing works... I can't start Premiere Pro CC, After Effect CC and t
-
[EXPLAINED] systemd wireless network service explanation
In times before systemd was mandatory i was using a simple script to connect to internet via wireless upon boot that set up wlan0, associated it with wireless and when that was done did dhcpcd to get ip. When systemd kicked in i did a bit of a kludge