Web service Invocation from ADF mobile app errors
Mobile App Gurus,
The webservice when invoked from ADF web app is working fine but, when invoked from Mobile APP errors in emulator with as below...
D/oracle.idm.mobile.OMAuthenticationServiceManager_onPostExecute( 1096): Authentication serivce is oracle.idm.mobile.SSOAuthenticationService
D/oracle.idm.mobile.OMAuthenticationServiceManager_onPostExecute( 1096): Authentication context status is IN_PROGRESS
D/oracle.idm.mobile.OMAuthenticationServiceManager_retrieveAuthenticationContext
( 1096): Authentication context for the key appsnet5login.sysadmin retrieved from the credential store is : null
D/oracle.idm.mobile.OMAuthenticationServiceManager_onPostExecute( 1096): Authentication serivce is oracle.idm.mobile.BasicAuthenticationService
D/oracle.idm.mobile.OMAuthenticationServiceManager_onPostExecute( 1096): Authentication context status is IN_PROGRESS
D/oracle.idm.mobile.OMAuthenticationServiceManager_doInBackground( 1096): Invalid Authentication URL.
Please can you let me know if I am missing some step in ADF Mobile App framework.
Thanks,
Shreedhar
Edited by: sh**** on Apr 22, 2013 5:11 AM
Edited by: sh**** on Apr 22, 2013 6:50 AM
I don't know if you fixed it already by this time or not. But here is my findings anyway, to be able to inject the security header correctly in any SOA Gateway service, you need to have your Mobile Application Secured, meaning that there is a prompt for username/password when you open it.
Then you will have to make a Proxy service for the webservice you are using from apps. And you must create it with a SOAP Handler also and write below sample code in the handler to inject the security header in the SOAP call. At last, you are going to deploy this proxy service to your Application Server.
These steps were taken on a Glassfish server not Weblogic. I think there is an easy way for this if you are using Weblogic..
Sample handler is below:
package com.mobile.xxsoap;
import java.util.HashSet;
import java.util.Set;
import javax.xml.namespace.QName;
import javax.xml.soap.Name;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPFactory;
import javax.xml.soap.SOAPHeader;
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.handler.soap.SOAPHandler;
import javax.xml.ws.handler.soap.SOAPMessageContext;
public class CustomSOAPHandler implements SOAPHandler<SOAPMessageContext> {
private static final String AUTH_PREFIX = "wsse";
private static final String AUTH_NS =
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
public boolean handleMessage(SOAPMessageContext context) {
try {
SOAPEnvelope envelope = context.getMessage().getSOAPPart().getEnvelope();
SOAPFactory soapFactory = SOAPFactory.newInstance();
SOAPElement wsSecHeaderElm = soapFactory.createElement("Security", AUTH_PREFIX, AUTH_NS);
SOAPElement userNameTokenElm = soapFactory.createElement("UsernameToken", AUTH_PREFIX, AUTH_NS);
SOAPElement userNameElm = soapFactory.createElement("Username", AUTH_PREFIX, AUTH_NS);
userNameElm.addTextNode("redsam");
SOAPElement passwdElm = soapFactory.createElement("Password", AUTH_PREFIX, AUTH_NS);
Name passwdTypeAttr = soapFactory.createName("Type");
passwdElm.addAttribute(passwdTypeAttr,
"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText");
passwdElm.addTextNode("123456");
userNameTokenElm.addChildElement(userNameElm);
userNameTokenElm.addChildElement(passwdElm);
wsSecHeaderElm.addChildElement(userNameTokenElm);
} catch (Throwable e) {
e.printStackTrace();
return true;
public Set<QName> getHeaders() {
return new HashSet<QName>();
public boolean handleFault(SOAPMessageContext messageContext) {
return true;
public void close(MessageContext context) {
I hope it is clear now...
Regards,
Mohamed
Similar Messages
-
ADF Mobile App integration with webservices, connection refused error
I created an ADF application for department search with business components and exposed this as a webservice. I can access the WSDL locally from a browser. Then created an ADF mobile application and deployed it to android emulator. I am able to deploy the application to emulator and I can see the app on Android emulator. When I try to search for any department, I am getting "cannot connect to localhost on port 7101 : connection refused". My server is started already and the port number is also correct. Did any one came across this issue before? Even the WSDL URL is not accessible from the browser of android emulator.
Edited by: adf_forum on Nov 16, 2012 2:16 PMHi,
One more thing to keep in mind is that Android emulator is itself a network host, and localhost will likely loop back into itself, i.e. emulator. Please try to set up the WLS to listen on an actual IP address for your development machine, create your WS DC using this real IP address, and then try to deploy/run the app.
If you need to retrofit your app with an new IP address, please keep in mind there are several places you would need to manually fix up, including the connections.xml file.
In general, if the device emulator's browser cannot hit a web service, then the ADF Mobile app will also not be able to hit a web service.
The most reliable way is to treat the emulator like an actual device, then work out your application's connection accordingly.
Thanks,
Joe Huang -
Not able to access SOAP web service data control from adf mobile
Hi,
I am trying to call web services from adf mobile..
I have created data control from external web service and it is perfectlly working on web browser..
But why it is showing an error on emulator??
Is there any .jar file missing in adf mobile so that it is not supporting a web service?
Or is there any other problem? Emulator is connected to network and I am able to run WSDL in emulator's browser..
Please help me to solve this issue..
Thanks,
LaxmiEmulator is connected to network and I am able to run WSDL in emulator's browser..
Connecting to WSDL in the browser is not the same as connecting to WSDL in an application.
To access a web service from an Android device enable a permission in AndroidManifest.xml that allows applications to open network sockets. Add the following uses-permission element.
<uses-permission android:name="android.permission.INTERNET"></uses-permission> -
Error during web service invocation
Below are the error details I'd received while trying to
invoke a web service using CFINVOKE.
Please help me to resolve this.
Thanks
Could not generate stub objects for web service invocation.
java.net.ConnectException: Connection refused: connect It is
recommended that you use a web browser to retrieve and examine the
requested WSDL document for correctness. If the requested WSDL
document can't be retrieved or it is
dynamically generated, it is likely that the target web
service has programming errors.Did you configure the web service client (which is bpel) for message level security ? It seems your bpel is sending some ws-security soap headers which the remote service is not able to understand (possibly , the remote server might not have been configured for ws security)
-
Saving Captured picture from ADF Mobile Application into Remote Database
Hi,
I am developing adf mobile application by using Device Demo Application from ADF Mobile Samples.I had deployed this application into Android mobile and capturing picture.
My Question is how can i save this captured pictured into Remote Database.
Could any one help on this!!!
Thanks in advance!!
Regards
Amar
Edited by: 973755 on Nov 28, 2012 7:46 AM
Edited by: 973755 on Nov 28, 2012 7:47 AMHi Joe,
Thanks for the reply!!
As per your instructions i created two classes 1.GetConnection.java and 2.PictureBean.java
in GetConnection.java i written following code
package Picture;
import java.sql.Connection;
import java.sql.SQLException;
import oracle.adfmf.framework.api.AdfmfJavaUtilities;
public class GetConncetion {
public GetConncetion() {
super();
protected static Connection conn = null;
public static Connection getConnection() throws Exception {
if (conn == null) {
try {
// create a database connection
String Dir = AdfmfJavaUtilities.getDirectoryPathRoot(AdfmfJavaUtilities.ApplicationDirectory);
String connStr = "jdbc:oracle:thin:@fusion.networks.com:1521:fusion"+Dir+"/DeviceDemo.db" ;
conn = new SQLite.JDBCDataSource(connStr).getConnection();
System.out.println("connection*******"+conn);
} catch (SQLException e) {
// if the error message is "out of memory",
// it probably means no database file is found
System.err.println(e.getMessage());
return conn;
and in PictureBean.java the following code i modified..
package Picture;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import oracle.adf.model.datacontrols.device.DeviceManager;
import oracle.jdbc.pool.OracleDataSource;
public class PictureBean {
public PictureBean() {
super();
String src;
private int quality = 25;
private int destination = DeviceManager.CAMERA_DESTINATIONTYPE_FILE_URI;
private int source = DeviceManager.CAMERA_SOURCETYPE_PHOTOLIBRARY;
private boolean allowEdit = false;
private int encoding = DeviceManager.CAMERA_ENCODINGTYPE_JPEG;
private int targetWidth = 0;
private int targetHeight= 0;
public void setQuality(int quality) {
this.quality = quality;
public int getQuality() {
return quality;
public void setDestination(int destination) {
this.destination = destination;
public int getDestination() {
return destination;
public void setSource(int source) {
this.source = source;
public int getSource() {
return source;
public void setAllowEdit(boolean allowEdit) {
this.allowEdit = allowEdit;
public boolean getAllowEdit() {
return allowEdit;
public boolean isAllowEdit() {
return allowEdit;
public void setEncoding(int encoding) {
this.encoding = encoding;
public int getEncoding() {
return encoding;
public void setTargetWidth(int targetWidth) {
this.targetWidth = targetWidth;
public int getTargetWidth() {
return targetWidth;
public void setTargetHeight(int targetHeight) {
this.targetHeight = targetHeight;
public int getTargetHeight() {
return targetHeight;
public String GetSource(String result) {
String src = "";
if( getDestination() == DeviceManager.CAMERA_DESTINATIONTYPE_DATA_URL ) {
src = "data:image/gif;base64,";
src = src + result;
System.out.println("src value in GetSource is "+src);
return src;
public void setSource(String result) {
PictureBean pb1=new PictureBean();
String src = "data:image/gif;base64,";
if( getDestination() == DeviceManager.CAMERA_DESTINATIONTYPE_DATA_URL ) {
src = "data:image/gif;base64,";
src = src + result;
public String GetSource(){
return src;
public boolean savePicture() throws Exception {
boolean ret=false;
PictureBean pb=new PictureBean();
String pic= pb.GetSource();
try{
Connection conn=GetConncetion.getConnection();
conn.setAutoCommit(false);
String insertSQL ="INSERT INTO IMAGE(ID,PIC) VALUES(?,?)";
PreparedStatement pStmt = conn.prepareStatement(insertSQL);
pStmt.setInt(1, 1);
pStmt.setString(2,pic);
pStmt.execute();
conn.commit();
ret = true;
}catch (SQLException e) {
System.err.println(e.getMessage());
} catch (Exception e) {
System.err.println(e.getMessage());
return ret;
and i created one button in Result.amx page and in Action Listener i had given #{bindings.savePicture.execute} and deployed into Android mobile.But i am neither getting error nor getting save picture into database.
while i run PictureBean.java class alone the following exception occurred.
"E:\ADF R2\jdk160_24\bin\javaw.exe" -client -classpath "C:\JDeveloper\mywork\DeviceDemo\.adf;C:\JDeveloper\mywork\DeviceDemo\ViewController\classes;E:\OracleJdbc\ojdbc14_g.jar;E:\OracleJdbc\ojdbc14.jar;E:\OracleJdbc\ojdbc.jar;C:\Users\Amar\Downloads\ojdbc6_g.jar;C:\Users\Amar\Downloads\ojdbc6.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-faces-databinding-rt.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\adf-share-support.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-ca.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-base.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\adflogginghandler.jar;E:\ADF R2\oracle_common\modules\oracle.idm_11.1.1\identitystore.jar;E:\ADF R2\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\adfm.jar;E:\ADF R2\oracle_common\modules\groovy-all-1.6.3.jar;E:\ADF R2\oracle_common\modules\oracle.ldap_11.1.1\ojmisc.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\commons-el.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\jsp-el-api.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\oracle-el.jar;E:\ADF R2\oracle_common\modules\oracle.xmlef_11.1.1\xmlef.jar;E:\ADF R2\oracle_common\modules\oracle.bali.share_11.1.1\share.jar;E:\ADF R2\modules\com.bea.core.apache.xercesImpl_2.8.1.jar;E:\ADF R2\modules\javax.activation_1.1.0.0_1-1.jar;E:\ADF R2\modules\javax.mail_1.1.0.0_1-4-1.jar;E:\ADF R2\modules\glassfish.jaxb_1.0.0.0_2-1-12.jar;E:\ADF R2\modules\javax.xml.bind_2.1.1.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\adftransactionsdt.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-dt-at-rt.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\adfdt_common.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\adflibrary.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\db-ca.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\jdev-cm.jar;E:\ADF R2\oracle_common\modules\oracle.adf.security_11.1.1\adf-share-security.jar;E:\ADF R2\oracle_common\modules\oracle.adf.security_11.1.1\adf-controller-security.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\adfsharembean.jar;E:\ADF R2\oracle_common\modules\oracle.jmx_11.1.1\jmxframework.jar;E:\ADF R2\oracle_common\modules\oracle.jmx_11.1.1\jmxspi.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\bc4j-mbeans.jar;E:\ADF R2\oracle_common\modules\oracle.javatools_11.1.1\resourcebundle.jar;E:\ADF R2\oracle_common\modules\oracle.ldap_11.1.1\ldapjclnt11.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-api.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-common.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-ee.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-internal.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-unsupported-api.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-manifest.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jacc-spi.jar;E:\ADF R2\oracle_common\modules\oracle.pki_11.1.1\oraclepki.jar;E:\ADF R2\oracle_common\modules\oracle.osdt_11.1.1\osdt_core.jar;E:\ADF R2\oracle_common\modules\oracle.osdt_11.1.1\osdt_cert.jar;E:\ADF R2\oracle_common\modules\oracle.osdt_11.1.1\osdt_xmlsec.jar;E:\ADF R2\oracle_common\modules\oracle.osdt_11.1.1\osdt_ws_sx.jar;E:\ADF R2\oracle_common\modules\oracle.iau_11.1.1\fmw_audit.jar;E:\ADF R2\modules\javax.security.jacc_1.0.0.0_1-1.jar;E:\ADF R2\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;E:\ADF R2\oracle_common\modules\oracle.mds_11.1.1\oramds.jar;E:\ADF R2\modules\javax.servlet_1.0.0.0_2-5.jar;E:\ADF R2\modules\javax.jsp_1.2.0.0_2-1.jar;E:\ADF R2\jdeveloper\ide\macros\..\..\..\oracle_common\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;E:\ADF R2\oracle_common\jlib\commons-cli-1.0.jar;E:\ADF R2\oracle_common\modules\oracle.dms_11.1.1\dms.jar;E:\ADF R2\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;E:\ADF R2\oracle_common\modules\oracle.javacache_11.1.1\cache.jar;E:\ADF R2\oracle_common\modules\oracle.ucp_11.1.0.jar;E:\ADF R2\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;E:\ADF R2\oracle_common\modules\oracle.javatools_11.1.1\javatools-nodeps.jar;E:\ADF R2\modules\javax.management_1.2.1.jar;E:\ADF R2\modules\javax.management.j2ee_1.0.jar;E:\ADF R2\jdeveloper\ide\macros\..\..\..\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n.jar;C:\Users\Amar\Downloads\commons-codec-1.7-bin.zip;C:\Users\Amar\Downloads\commons-codec-1.7-src.zip;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\dvt-databindings-mds.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\dvt-databindings.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\dvt-facesbindings.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\trinidad-api.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\trinidad-impl.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-richclient-api-11.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-richclient-impl-11.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-dynamic-faces.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-faces-changemanager-rt.jar;E:\ADF R2\oracle_common\modules\oracle.facesconfigdt_11.1.1\facesconfigmodel.jar;E:\ADF R2\oracle_common\modules\oracle.facesconfigdt_11.1.1\taglib.jar;E:\ADF R2\modules\glassfish.el_1.0.0.0_2-1.jar;E:\ADF R2\oracle_common\modules\oracle.jsf_2.0\jsf-api.jar;E:\ADF R2\oracle_common\modules\oracle.jsf_2.0\jsf-impl.jar;E:\ADF R2\modules\glassfish.jstl_1.2.0.1.jar;C:\Users\Amar\Downloads\jndi-properties.jar.zip;C:\Users\Amar\Downloads\jndi-1.2.1.jar.zip;C:\Users\Amar\Downloads\h2-1.3.149.jar.zip;C:\Users\Amar\Downloads\Android\h2-1.3.149.zip;C:\Users\Amar\Downloads\Android\android\app;C:\Users\Amar\Downloads\Android\android;C:\Users\Amar\Downloads\Android" -Djavax.net.ssl.trustStore=C:\Users\Amar\AppData\Local\Temp\trustStore7108102737679976193.jks Picture.PictureBean
Source value is null
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/adfmf/framework/api/AdfmfJavaUtilities
at Picture.GetConncetion.getConnection(GetConncetion.java:24)
at Picture.PictureBean.savePicture(PictureBean.java:140)
at Picture.PictureBean.main(PictureBean.java:189)
Caused by: java.lang.ClassNotFoundException: oracle.adfmf.framework.api.AdfmfJavaUtilities
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
... 3 more
Process exited with exit code 1.
i already imported AdfmfJavaUtilities package dont know why it showing exception.
and while i am debugging the GetConnection.java value of 'Dir' is null.i am not getting what is the AdfmfJavaUtilities.ApplicationDirectory?
Could you help on this!!
Thanks & Regards
Amar -
ADF Mobile Preview error!
Hi gurus!
Well when I split my designer in two, one for the code and the other for the preview,
I click on the preview tab and Jdeveloper stops, (in the task manager is still running)
but I cannot click on anything and sometimes I get a window with an 'Unexpected error' message but no content
I installed Jdev 11.1.2.3.0 on XP 32 bit and it works
mine is a windows 8 64 bit, my friend also has w8 64bits and he has the same problem as me.
Have you encounter this error? is it because of windows 8? or the 64 bit arquitecture or the color setting?
thanks!!!
This only happens with adf mobile preview, with adf faces web everything works fine. adf mobile is the problem!
ERROR image!!!
http://img801.imageshack.us/img801/7690/nopreview.png
Edited by: diego10 on 30-abr-2013 15:58Installing the 11.1.2.4. version of JDev solvedmy problem but I couldn't deploy my apps developed in 11.1.2.3.0 and It needs a higher jdk version and It got me a lot of conflicts I will finish a project and then try to get hand on 11.1.2.4, iF YOU still have trouble with it, report it. It should be working now.
-
hello colleagues,
In the phase Connect Diagnostics dont show the Agent available in SLD, but when go to SLD i have the agents,
Error,
Connect Diagnostics Agent
The table does not contain any data
Agent availables in all SLD
SOAP:1.007 SRT: Unupported xstream found: ("HTTP Code 401 : Unauthorized")
Web service invocation problem on host hostname and port 8000 protocol : http logical port name : LP_WS_SMDAGENT_MONITORING
ThanksOK, then pls follow below steps;
- Go to step 'Create Users' in solman_setup System Preparation scenario and make sure the user SM_INTERN_WS has a green status. Use the 'Test Login' button to make sure the user is not locked and has correct credentials maintained in solman_setup
- Immediately after checking the user status, navigate to Configure Connectivity->Enable Web Services and execute again the 'Create Logical Ports' automatic activity, in order to propagate the correct credentials to the Logical Port definitions.
- If the above operation is not successful, repeat the two steps above, providing a different user Id in 'Create Users' step, eg SM_INTERN_W1. This will prevent situations where the user gets locked by Logical Ports using an obsolete password.
Let me know the results.
Regards,
Vivek -
ADF-Mobile app will not rotate in iOS simulator or device
We have been coding an ADF-Mobile app in JDeveloper and testing on both a Motorola tablet and an iPad.
Both our application, as well as the demo "Deployment Successful" (found here: http://docs.oracle.com/cd/E18941_01/tutorials/MobileTutorial/jdtut_11r2_54_1.html) application rotate fine from portrait to landscape and back on the Motorola device, however, the same code will not rotate on an iPad.
I understand that the device orientation functionality is controlled in the deployment profile. I have been successful with forcing my app to launch in landscape mode OR portrait mode (By deselecting both portrait settings or both landscape settings, respectively in my deployment profile) however, when I leave all 4 enabled, my app seems to be locked in right-side-up portrait mode (It will not even rotate between portrait modes)
Has anyone experienced this issue with iOS devices and the rotation functionality, and if so, is there a workaround?
Any help is appreciated
Gord TaylorHi,
There is a known issue when you use Xcode 4.5 and iOS SDK 6 to compile your app - the app would not rotate correctly. If you use Xcode 4.4.1 and the associated SDK, then rotation will work fine on both iOS 5 and 6 devices.
Xcode 4.5 certification should be coming soon - for now please try to use 4.4.
If you are already using 4.4, please let me know and perhaps there are configuration issues.
Thanks,
Joe Huang -
Problem in using the Web Service generated from BAPI_FLIGHT_GETLIST
Hi all,
I am trying to use the Web Service generated from BAPI_FLIGHT_GETLIST. I have got the wsdl file, and trying to invoke it. But, while I can test the BAPI using the Airline ID AA, I can't test from the Web Service using the same data. It shows the error message - "Airline AA not found". Anyone having solution, please help. This is urgent.
Thanks,
Anirban
Message was edited by:
Anirban DasYes, I am connecting to the same system where we have data..
Anirban -
How to create Web Service Client from wsdl with digital signature?
Please, help me to create Web Service Client from wsdl with digital signature. I know create Web Service client from wsdl file and I know how to add digital signature to XML with jwsdp, but I don't know how to do it together.
Thanks.I'm handling security wit JAX-WS handler. So I insert "manually" ws-security tag and I encrypt (and sign) message parts.
On client side, all works fine, but on server side I obtain:
---Server Inbound SOAP message---|#]
Decrypting message and rebuilding Valuees... |#]
Starting decrypt|#]
. dectypted.!
--found following string: <ns1:addiziona><num1>80</num1><num2>22222</num2></ns1:addiziona>|#]
...MESSAGE Restored.|#]
<?xml version="1.0" ?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ns1="http://calculator.me.org/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><soapenv:Body><ns1:addiziona><num1>80</num1><num2>22222</num2></ns1:addiziona></soapenv:Body></soapenv:Envelope>|#]
Error in decoding SOAP Message
Error in decoding SOAP Message
at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:89)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.toMessageInfo(SOAPMessageDispatcher.java:187)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:571)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:145)
at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:160)
at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:89)
at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:178)
at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:100)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: javax.xml.ws.soap.SOAPFaultException: Cannot find the dispatch method
at com.sun.xml.ws.encoding.soap.SOAPDecoder.raiseFault(SOAPDecoder.java:674)
at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.decodeDispatchMethod(SOAPXMLDecoder.java:152)
at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBodyContent(SOAPDecoder.java:337)
at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBody(SOAPDecoder.java:327)
at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeEnvelope(SOAPDecoder.java:250)
at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:81)
... 29 more
|#]
--->handleFault O_o<---|#]If you have any idea for solving my problem, then I can post my simple example :(
Bye! -
Special Character XML Web Service call from Flex
Hi,
Let me first give a little background.
I have to query and return data in XML format. To do so, I have created a custom DSC component. In cases where XML has special characters, LC throws error saying that XML is not properly formed. To over come this issue I used CDATA tag at DSC component. Now LC works as it should and I returns correct result.
I have a web service call from Flex to get this XML result. Every time i trigger this web service I get an error message saying </document> tag is missing.
I understand in Flex, web service returned data is wrapped in CDATA tag, thats what i causing all this issue.
I am not sure, how to handle this situation, I am sure this is a common problem and there should be ways to work around it.
I would really appreciate if any one could point me in the right direction.
Thank you ..The web service has four operations in it, I need pingQuery operation execution code since it doesnot need any input value.
I have used code something like this.. Any one please correct me if I am wrong..
<mx:WebService
<mx:WebService> id="webService" wsdl=""https://hydrogen.csd.sc.edu/axis2/services/AcademicHistoryService?wsdl
>
<mx:operation name="pingQuery"resultFormat="
object"result="resultHandler(event);"
fault="faultHandler(event);"
>
<mx:request>
<PingQuerySpecification>
<value>
fsdf
</value>
</PingQuerySpecification>
</mx:request>
</mx:operation>
</mx:WebService>
private function resultHandler(evt:ResultEvent):void {Alert.show(ObjectUtil.toString(evt.result));
private function faultHandler(evt:FaultEvent):void {Alert.show(evt.message.toString()); -
Asynchronous web service call from Redwood
Hi Everyone,
Build version M33.104.
We have a scenario where we have to call an asynchronous web service.
From the documentation i understand that the Redwood job will be in status Running until the web service completes.
How does the call back work from the web service to Redwood? How does Redwood know the asynchronous web service job completed?
From the documentation, the per-requisite is:
callback to UpdateJob1 web service at ServerAddress with JobId and FinalStatus as Out parameters
Should i create two out parameters for the web service job definition in Redwood? one JobId and another FinalStatus?
How do i get the URL to UpdateJob1 web-service, so that i can make my web service, call it, to update the Redwood job that called it?
thanks
NandaHi HP,
I included the following snippet in job source:
//Set completion strategy to external
jcsJobContext.setCompletionStrategy(CompletionStrategyType.External);
I get the following error when compiled:
JCS-102183: Compile failed for Job Definition SOAP_GlobalWeatherSoap_GetCitiesByCountry (Latest Version): SOAP_GlobalWeatherSoap_GetCitiesByCountry.java:user code 24:40:cannot find symbol symbol : variable CompletionStrategyType location: class com.redwood.scheduler.custom.SOAP_GlobalWeatherSoap_GetCitiesByCountry jcsJobContext.setCompletionStrategy(CompletionStrategyType.External);
I am not able to find any information from the API documentation on the method setCompletionStrategy, so I'm not able to figure what type of variable am i passing, so that i can initialize it. Please shed some light on it.
Also there is no path called Scripting > Built-In Web Services
I have only Scripting>Published Web Services
Thanks
Nanda -
Invoke web service created from workshop
Hi,
I am trying to write a stand alone java client to connect to web service created
from workshop( please see the attached wsdl file), but can't get it work. Did
somebody know why. Here is my java client code :
import java.net.URL;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Service;
import javax.xml.rpc.Call;
import javax.xml.namespace.QName;
import weblogic.webservice.context.WebServiceContext;
import weblogic.webservice.context.WebServiceSession;
import weblogic.webservice.context.WebServiceHeader;
public class OrderTestClient {
public static void main(String[] args) {
try {
// Setup the global JAXM 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();
// define qnames
//String targetNamespace = "http://localhost/orderweb";
String targetNamespace = "http://www.openuri.org/";
QName serviceName = new QName(targetNamespace, "newsmlorder");
QName portName = new QName(targetNamespace, "newsmlorderSoap");
//QName operationName = new QName("tns:newsmlorderSoap", "getUserAddress");
QName operationName = new QNam("http://localhost:7021/orderweb/", "getUserAddress");
URL wsdlLocation = new URL("http://localhost:7021/orderweb/newsmlorder.jws?WSDL");
// create service
Service service = factory.createService(wsdlLocation, serviceName);
// create call
Call call = service.createCall(portName, operationName);
WebServiceContext wsContext = WebServiceContext.currentContext();
WebServiceSession session =(WebServiceSession)wsContext.getSession();
System.out.println(" Session : " + session.toString() );
System.out.println(" == step 11 ===");
// invoke the remote web service
System.out.println(" == step 12 ===");
String result = (String) call.invoke(new Object[] {"testPing"});
System.out.println("test result : " + result);
catch (Exception e) {
System.out.println("test result : " + e.getMessage());
[order.wsdl]Hi,
I did not get any error, however the service call is always return null even though
I hard code return String, so I knew it failed.
I tried your following code and it worked. You mention that I have to download
proxy.jar from workshop overview page, but I can't find it. Would you please tell
me where to find the download menu in workshop.
If I want to build a dynamic stand alone client to invoke service created from
workshop ( my original approach), what should I do?
I am trying to use workshop to handle multipart soap message (soap message with
attachments), could you please send me a example ?
Very appreciate your help!
Thanks again.
Lina
Vimala Ranganathan" <[email protected]> wrote:
>
>
>
Hi Lina,
Are you getting any errors?
Did you happen to try with a static client? Is that working?
(For static client you have to download the proxy jar from the workshop
overview
page and have it in the classpath)
I have attacjhed the proxy jar and here is a sample client. Let me know
how this
goes.
public class Test
public static void main(String [] args)
Newsmlorder_Impl m_proxyImpl = null;
NewsmlorderSoap m_proxy = null;
try
m_proxyImpl = new Newsmlorder_Impl();
catch (IOException ex)
System.out.println("Error getting proxy");
ex.printStackTrace();
m_proxy = m_proxyImpl.getnewsmlorderSoap();
GetUserAddress p = m_proxy.getUserAddress();
Thanks a lot,
Vimala Ranganathan
"Lina Li" <[email protected]> wrote:
Hi,
I am trying to write a stand alone java client to connect to web service
created
from workshop( please see the attached wsdl file), but can't get itwork.
Did
somebody know why. Here is my java client code :
import java.net.URL;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Service;
import javax.xml.rpc.Call;
import javax.xml.namespace.QName;
import weblogic.webservice.context.WebServiceContext;
import weblogic.webservice.context.WebServiceSession;
import weblogic.webservice.context.WebServiceHeader;
public class OrderTestClient {
public static void main(String[] args) {
try {
// Setup the global JAXM 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();
// define qnames
//String targetNamespace = "http://localhost/orderweb";
String targetNamespace = "http://www.openuri.org/";
QName serviceName = new QName(targetNamespace, "newsmlorder");
QName portName = new QName(targetNamespace, "newsmlorderSoap");
//QName operationName = new QName("tns:newsmlorderSoap","getUserAddress");
QName operationName = new QNam("http://localhost:7021/orderweb/",
"getUserAddress");
URL wsdlLocation = new URL("http://localhost:7021/orderweb/newsmlorder.jws?WSDL");
// create service
Service service = factory.createService(wsdlLocation, serviceName);
// create call
Call call = service.createCall(portName, operationName);
WebServiceContext wsContext = WebServiceContext.currentContext();
WebServiceSession session =(WebServiceSession)wsContext.getSession();
System.out.println(" Session : " + session.toString() );
System.out.println(" == step 11 ===");
// invoke the remote web service
System.out.println(" == step 12 ===");
String result = (String) call.invoke(new Object[] {"testPing"});
System.out.println("test result : " + result);
catch (Exception e) {
System.out.println("test result : " + e.getMessage()); -
We are using the Azure server for our web services. Server is generating an error "Unable to connect to the remote server". What is this error means
Hello,
Did you means that you use the Windows Azure Virtual Machine DNS name as the server name in the Reporting Server Web Services URL?
For example:
Report server:http://uebi.cloudapp.net/reportserver
Report manager:http://uebi.cloudapp.net/reports
If you want to connect to Report Manager on the virtual machine from a remote computer, you should create a virtual machine TCP Endpoint and open the port in the virtual machine’s firewall. By default, the report server listens for HTTP requests
on port 80.
Reference:http://msdn.microsoft.com/en-us/library/jj992719.aspx#bkmk_ssrs_connect_2_remote_RM
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
Trouble Calling Web Service Function From Runbook
i have downloaded the OrchestratorServiceModule web services module from CodePlex and i am successfully using it in runbooks. But for some reason when i call the runbook from another runbook, the Get-OrchestratorRunbook function returns no data
($runbook variable is $null). The error message states the runbook name that i provide "is not found in Orchestrator". This function works well when the runbook is called directly. The variables
are populated. $creds is set to $null. there are no errors regarding installing the module or finding the function. any ideas as to why this would succeed when the runbook is called directly but fail when called by another runbook?
$runbook = Get-OrchestratorRunbook -serviceurl $url -runbookpath $rbpath -credentials $credsGeorge,
The documented way to call a web service using PL/SQL is to use UTL_DBWS package.
Here are a couple of links that may be useful:
http://www.oracle-base.com/articles/10g/utl_dbws10g.php
http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm
There is also an APEX package wwv_flow_web_services, but I couldn't find any documentation on it.
Sima
Maybe you are looking for
-
How to block modification of a VPN profile ? (password and address)
Hello, we use iPhone Configuration Utility 2.2 to deploy the iPhone in our Enterprise and we are surprised by the fact that it's impossible to block the modifications a parameter configured in the profile. For example, for VPN, it's possible for the
-
[SOLVED] Can not shutdown/restart from KDE with systemd
Hello, Recently, following I switched to a pure systemd setup. The process was simple and most things worked "right out of the bpx". However, I can not shutdown or restart from KDE! Let's say that I do the 3 finger salute (ALT-CTRL-DEL) and selec
-
Send Internal table to mail with Colman name
Hi, how can i send the content of internal table to mail , i try to convert to HTML and send it but the problem is that i don't get the column name , there is another way to send the IT with the column name ? any e.g will help i am stuck .... Regards
-
Business printers and devices have driver problem
My biggest problem after installation of 10.5 is that I use my laptop in a prepress business and I lost nearly all of my print drivers. I did a rights repair and still no luck. I'm guessing that none of the high end business copier printers we have i
-
I recently up dated my OS to 10.7.3 and I get a "can't open application because PowerPC applications are no longer supported. Can this be restored? If not do you know if Epson has drivers for my scanner that work around this?