oh thks!
i'll try it :)
On Aug 25, 2:49 am, dai <[EMAIL PROTECTED]> wrote:
> Did you add <uses-permission
> android:name="android.permission.INTERNET" /> to your manifest?
> This tag is mandatory for beta 0.9 version. Without it, you could not
> connect to the internet.
>
> On 8月25日, 午前9:30, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I try to consume my soap webservice writted with cxf apache.
> > Java client works fine and now, i want to create android client.
> > I found a sample
> > =>http://groups.google.com/group/android-developers/browse_thread/threa...
> > And i try to update it to work with the last android sdk version. (0.9
> > beta)
> > So i decided to use ksoap2 snapshot + SE extension and write a
> > sample..
>
> > the source code :
>
> > public class Adder extends Activity {
> > private static final String SOAP_ACTION = "RegistrationService";
> > private static final String METHOD_NAME = "register";
> > private static final String NAMESPACE = "http://
> > unknown.namespace";
> > private static final String URL = "http://192.168.0.5:8080/poker-
> > flex/ws/RegistrationService?wsdl";
>
> > /** Called when the activity is first created. */
> > @Override
> > public void onCreate(Bundle icicle) {
> > super.onCreate(icicle);
> > setContentView(R.layout.main);
> > findViewById(R.id.cmdCalculate).setOnClickListener(new
> > OnClickListener() {
> > public void onClick(View view) {
> >
> > ((TextView)findViewById(R.id.lblStatus)).setText("... Invoking Web
> > Service ...");
> > SoapObject request = new
> > SoapObject(NAMESPACE, METHOD_NAME);
> > SoapSerializationEnvelope envelope = new
> > SoapSerializationEnvelope(SoapEnvelope.VER11);
> > envelope.setOutputSoapObject(request);
> > Transport androidHttpTransport = new HttpTransportSE
> > (URL);
> > try {
> > androidHttpTransport.call(SOAP_ACTION,
> > envelope);
> > Object result = envelope.bodyIn;
>
> > ((TextView)findViewById(R.id.lblStatus)).setText(result.toString());
> > } catch(Throwable E) {
> >
> > ((TextView)findViewById(R.id.lblStatus)).setText("ERROR:" +
> > E.getClass().getName() + ": " + E.getMessage());
> > }
> > }
> > });
> > }
>
> > }
>
> > but I have an exception during calling "
> > androidHttpTransport.call(SOAP_ACTION, envelope); "
> > at the line 68 from the file HttpTransportSE.java "
> > connection.connect(); "
> > => java.net.SocketException: unknown error
>
> > someone use successfully cxf and android client? :-/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---