Thanks for your response.
I try to develop an android application which would connect to Business Objects server and retrieve the details required.
I use BO 4.0 Webservices Consumer SDK jars provided by business objects, rt.jar (without which i get java.rmi.remoteException error), axis2-kernel-1.3.jar, xbean-2.2.0.jar apart from android jar.
I dont get any compilation error when i build the code. But when i try to run , i get the below error.
Please help me !!!!
Sample code:
package com.example.testandroid;
import java.net.URL;
import com.businessobjects.dsws.Connection;
import com.businessobjects.dsws.session.Session;
import com.businessobjects.dsws.session.EnterpriseCredential;
import com.businessobjects.dsws.session.SessionInfo;
import com.businessobjects.dsws.biplatform.BIPlatform;
import com.businessobjects.dsws.biplatform.ResponseHolder;
import com.businessobjects.enterprise.infoobject.InfoObject;
import com.businessobjects.dsws.biplatform.constants.FixedCUIDs;
import android.app.Activity;
import android.os.Bundle;
import android.os.StrictMode;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class MainActivity extends Activity
{
public static String serviceURL = "XX";
public static String cmsname = "XXX";
public static String username = "XX";
public static String password = "XX";
public static String authType = "XX";
Button btnCel;
TextView txtView;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
.permitAll().build();
StrictMode.setThreadPolicy(policy);
btnCel = (Button) findViewById(R.id.btnCel);
txtView =(TextView)findViewById(R.id.textView2);
btnCel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// Create the URL for the Session Service and instantiate a new Session
// Service
try
{
URL sessConnURL = new URL(serviceURL);
Connection boConnection = new Connection(sessConnURL);
// Setup the Enterprise Credentials used to login to the Enterprise System
EnterpriseCredential boCredential = EnterpriseCredential.Factory.newInstance();
boCredential.setLogin(username);
boCredential.setPassword(password);
boCredential.setAuthType(authType);
Session boSession = new Session(boConnection);
// Login to the Enterprise System and retrieve the SessionInfo
SessionInfo boSessionInfo = boSession.login(boCredential);
— modified on Feb 7, 2013, 9:45:28 AM
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.