Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Application Crash using wsimport
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rakesh ranjan  
View profile  
 More options Oct 10 2012, 5:02 am
From: rakesh ranjan <mailrakeshran...@gmail.com>
Date: Wed, 10 Oct 2012 02:02:18 -0700 (PDT)
Local: Wed, Oct 10 2012 5:02 am
Subject: Application Crash using wsimport

Hi Everyone

I have done some coding in android , When i try to run it the application
get stop. Please help me out of this.

My Code is as follow.

*

package
*

com.example.testwebservices;

*

import
*

java.net.URL;

//import javax.xml.namespace.QName;
*

import
*

android.os.Bundle;
*

import
*

android.app.Activity;

//import android.view.Menu;
*

import
*

java.net.*;

//import java.util.*;

//import java.io.*;
*

import
*

javax.xml.namespace.QName;
*

import
*

schemas.dynamics.microsoft.codeunit.navisionws.NavisionWS;
*

import
*

schemas.dynamics.microsoft.codeunit.navisionws.NavisionWSPort;

//import schemas.dynamics.microsoft.nav.system.*;

//import schemas.dynamics.microsoft.codeunit.Navisionws.*;

 *

public
*

*class* MainActivity *extends* Activity {

 @Override

*public* *void* onCreate(Bundle savedInstanceState) {

*super*.onCreate(savedInstanceState);

setContentView(R.layout.

*activity_main*);

*try*{

/*

String baseURL = "http://localhost:7047/DynamicsNAV/WS/Codeunit/NavisionWS";

URL systemServiceURL = new URL(baseURL);

QName systemServiceQName = new QName("urn:microsoft-dynamics-schemas/*nav*
/system/NavisionWS");

NavisionWS *ns* = new NavisionWS(systemServiceURL,systemServiceQName);

NavisionWSPort NsPort = ns.getNavisionWSPort();

String Res = NsPort.getCompanyName();

System.out.print(Res);

*/

String baseURL =

"http://10.2.2.0:7047/DynamicsNAV/WS/";

//The following code allows you to connect to NAV Web Services system
service in Java and output the companies available on the service tier:

 URL systemServiceURL =

*new* URL(baseURL + "Codeunit/NavisionWS");

QName systemServiceQName =

*new* QName("urn:microsoft-dynamics-schemas/codeunit/NavisionWS",
"NavisionWS");

NavisionWS ns =

*new* NavisionWS(systemServiceURL,systemServiceQName);

NavisionWSPort NsPort = ns.getNavisionWSPort();

String Res = NsPort.getCompanyName();

System.

*out*.print(Res);

}

*catch* (MalformedURLException e)

{}

}
}

   /*

public class CallNavWSActivity extends Activity {

/** Called when the activity is first created. */

/*@Override

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.main);

try {

String baseURL = "http://10.0.2.2:7047/DynamicsNAV/WS/Codeunit/";

URL systemServiceURL = new URL(baseURL + "NavisionWS");

//URL systemServiceURL = new URL()

QName systemServiceQName = new QName("urn:microsoft-dynamics-schemas/*
codeunit*/NavisionWS","NavisionWS");

NavisionWS *ns* = new NavisionWS(systemServiceURL, systemServiceQName);

NavisionWSPort port = ns.getNavisionWSPort();

String res = port.getCompanyName();

System.out.print(res);

} catch (Exception e) {

e.printStackTrace();

}

  }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »