BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 05-07-2009, 04:50 AM   #1 (permalink)
New Member
Join Date: Apr 2009
Model: 8120
Carrier: a
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default SOAP Fault:Server

Please Login to Remove!

Hi all ,

I am new to BlackeBerry developement. I am trying to invoke a webservice through Blackberry code.

i am testing the webservice in SoapUI tool. It is working fine there. But while invoking it through Midlet code, it is giveing a SOAP Fault of type Server.

Please help me reagarding this error . I need to know the route cause ofthis error and its remedy.

The code for reference is as here:

public void run(){
try {

SoapObject rpc = new SoapObject("__my message holder___", "_my metod name __");

/* These are input fields*/

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
System.out.println("SOAP HEADER ++++");
envelope.headerOut = new Element[1];
// header code here-----
envelope.headerOut[0] = headerSec;
envelope.bodyOut = rpc;
//envelope.dotNet = true;
envelope.encodingStyle = SoapSerializationEnvelope.XSD;

HttpTransport http = new HttpTransport("--my wsdl");"--my soap action",envelope);
SoapObject result = (SoapObject)envelope.bodyIn;

--contined to get O/P

catch (SoapFault sf){
String faultString = "Code: " + sf.faultcode + "\nString: " + sf.faultstring;
System.out.println("SOAP Fault");
System.out.println(sf.faultcode+ "\n" + sf.faultstring);
catch (Exception e) {

Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

APPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD
APPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD   picture

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.