Solved

Problem in calling web service wsdl/soap

Posted on 2011-03-18
3
685 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
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 arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

724 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