Solved

Problem in calling web service wsdl/soap

Posted on 2011-03-18
3
683 Views
Last Modified: 2012-05-11
Hi All,

My app is completely dependent on internet...

i use WSDL/SOAP service config

I call few services in app start up


It works fine if internet connection is available on page startup, if net connection is not availble at startup of app i am trying to call same services by placing timer but  at some point endPointUrl becomes null.....

 

In the page initalisation i.e whil calling web services, the  parameters such has

_serviceControl.service ="";

_serviceControl.port ="";

wsdl="";

model_internal::initialize(); //gets initalised properly ...

 

----All this works fine when internet connection is there i.e it get initalised properly

but if internet connection is not there at the application startup or any mxml  page  life cycle a problem occurs...

i.e i do check for internet connection in my application startup and

if (internet available)

      call a method where i call the services

      i.e getSearchEngineForPageResult.token = lawPadCommunicationServicesPort.getSearchEngineForPage(RefTxtInput, 15, counter);

else

   set a timer to recheck the connection, once available i wil call  the services

 

But at this point i am not able to make a request bec

all the values becomes null if initally internet is not there

_serviceControl.service ="";

_serviceControl.port ="";

wsdl="";

       and also

endPointUrl = null //how to overcome this      

 

<fx:Declarations>
        <s:CallResponder id="getSearchEngineForPageResult"/>
        <lawpadcommunicationservicesport:LawPadCommunicationServicesPort id="lawPadCommunicationServicesPort"
                                                                          result="lawPadCommunicationServicesPort_resultHandler(event)"      
                                                                          showBusyCursor="true"/>
    </fx:Declarations>

 

where i am going wrong pls let me know....
0
Comment
Question by:SreeramojuPradeep
  • 2
3 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 35166253
Are you setting destination URL or service name?
0
 

Author Comment

by:SreeramojuPradeep
ID: 35196167
we are setting all these(WSDL URI, service name, service package, Datatype package) to connect to the server.

 wsdl data services
0
 
LVL 29

Accepted Solution

by:
dgofman earned 250 total points
ID: 35199998
Its possible get your WSDL definition outside your network. May be for testing you can upload your ear or war to your public webhost.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
login jsp example 24 68
jsp insert to database example 2 47
eclipse console opening separately 2 29
maven disable workspace resolution 1 22
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question