Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 587
Registered: ‎01-19-2010
My Device: BOLD 9700 OS5.0.0.x on Rogers Canada
My Carrier: Rogers

Web service: different results based on location path

Sorry that the title isn't more descriptive. I tried to make it brief. That said, my problem is this:

 

My company has hosted a web service for me to use in my BlackBerry application. You might have seen earlier posts in which I asked for help regarding the results of calling this service: empty values. Myself and several other developers have been testing this concept for the better part of this week. As an aid, one of the senior developers hosted two simple web services -- one which returns "Hello %name%", and one which adds two integers -- in a custom directory on the server which contains the standard web services. To my surprise, I was able to get valid return values from both of these methods using hte same code I used to call the regular web service. I tried more, changed more settings, and still I got valid results. Baffled, I did more tests. Eventually, our final test to see where the problem lie was to put the new web services in the same directory as the required service for my project. Same server, same code, different directory.

 

The calls failed. It seems that the standard directory of our server strips the incoming packets of their parameters before execution. The incoming packets are identical in either location. My question is, what could cause this? I've included the request packets for both j2SE and j2ME below. You'll see that the only changes are in the namespace and the qualified path. Every other aspect of the packets is identical (unless I'm missing something). I've taken out the I for security reasons.

 

 

 

SE -------------------------------------------------------------------------------------------------------

DBVehicle

POST /**UnReg**faces/DBVehicle.asmx HTTP/1.1
User-Agent: kSOAP/2.0
SOAPAction: http://www.sentinelfm.com/Adder
Content-Type: text/xml
Connection: close
Content-Length: 338
Cache-Control: no-cache
Pragma: no-cache
Host: ##.##.##.##:####
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2

<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2001/12/soap-encoding" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"><v:Header /><v:Body><Adder xmlns="http://www.sentinelfm.com/" id="o0" c:root="1"><a>5</a><b>6</b></Adder></v:Body></v:Envelope>

Daservices

POST /**UnReg**/xtest.asmx HTTP/1.1
User-Agent: kSOAP/2.0
SOAPAction: http://dominic_aquilina.org/Adder
Content-Type: text/xml
Connection: close
Content-Length: 340
Cache-Control: no-cache
Pragma: no-cache
Host: ##.##.##.##:####
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2

<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2001/12/soap-encoding" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"><v:Header /><v:Body><Adder xmlns="http://dominic_aquilina.org/" id="o0" c:root="1"><a>5</a><b>6</b></Adder></v:Body></v:Envelope>

ME ------------------------------------------------------------------------------------------------------

DBVehicle

POST /**UnReg**faces/DBVehicle.asmx HTTP/1.1
Connection:close
Accept:*/*
Content-Length:338
User-Agent:kSOAP/2.0
Via:MDS_4.1.5.26
Content-Type:text/xml
SOAPAction:http://www.sentinelfm.com/Adder
Host:##.##.##.##:####

<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2001/12/soap-encoding" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"><v:Header /><v:Body><Adder xmlns="http://www.sentinelfm.com/" id="o0" c:root="1"><a>5</a><b>6</b></Adder></v:Body></v:Envelope>

Daservices

POST /**UnReg**/xtest.asmx HTTP/1.1
Connection:close
Accept:*/*
Content-Length:340
User-Agent:kSOAP/2.0
Via:MDS_4.1.5.26
Content-Type:text/xml
SOAPAction:http://dominic_aquilina.org/Adder
Host:##.##.##.##:####

<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2001/12/soap-encoding" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"><v:Header /><v:Body><Adder xmlns="http://dominic_aquilina.org/" id="o0" c:root="1"><a>5</a><b>6</b></Adder></v:Body></v:Envelope>


 

 

Thoughts?

 

Thanks,

~Dom

 

----------------------------------------------------------------------------
chown -R us ./base
~J!NX
Developer
Posts: 587
Registered: ‎01-19-2010
My Device: BOLD 9700 OS5.0.0.x on Rogers Canada
My Carrier: Rogers

Re: Web service: different results based on location path

Bump? There's really nothing I can do about the issue at this point, but any help I can provide to those who have the ability and system knowledge to fix it would be much appreciated, and would likely expediate the process greatly. Has anyone heard of this occurring elsewhere?

 

~Dom

----------------------------------------------------------------------------
chown -R us ./base
~J!NX