Web Service Location
What is the best way to change the location of a web service? We have a web service currently pointing to a development server and when we move it to the production server we have to change the URL that the web service uses to the production server as well. How do I do this in the flex builder?
Chris
Hi,
Put your web Serive path in a xml file at the Flex end.Now pickup this path using the HttpService on the CreationComplete or Initialize
of the Flex Application.
Later on you can change any time the webService path in the xml,it will not create problme whether you will be working Development
or Production Server.Because you can change the path any time in the xml.
with Regards,
Shardul Singh Bartwal
Similar Messages
-
Calling a web service from within PLSQL
Hello !
I am trying to activate a web service located on a remote machine inside a database trigger . This WSDL has been generated by a XI (SAP) tool and located on the server on which the XI is installed.
XI is an EAI tool a product that is included in the SAP products - for integrating between SAP and other tools - including Oracle DB.
When I try to call the web service using UTL_HTTP package - a procedure i wrote correctly - I get the following error message :
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1029
ORA-12545: Connect failed because target host or object does not exist
I have GOOGLED the last message ( ORA-12545) , but the forums referred to a client for ORACLE, which is configured incorrectly; none of them referred to my case - calling a web service. BTW I tried using the web server's IP address instead of the DNS but got the same error.
Any suggestion would be very appreciated.
Best Regards,
Shimon B.Try the following type of "telnet" test using PL/SQL:
SQL> create or replace function tcpPing( ipAddress varchar2, portNum number) return varchar2 is
2 socket utl_tcp.connection;
3 t1 timestamp with local time zone;
4 begin
5 t1 := systimestamp;
6 socket := utl_tcp.Open_Connection(
7 remote_host => ipAddress,
8 remote_port => portNum,
9 tx_timeout => 5
10 );
11 utl_tcp.Close_Connection( socket );
12
13 return( ipAddress||':'||TO_CHAR(portNum)||' is alive. ('|| TO_CHAR(systimestamp-t1) ||')' );
14
15 exception when OTHERS then
16 return( ipAddress||':'||TO_CHAR(portNum)||' did not respond. ('||SQLERRM(SQLCODE)||')' );
17 end;
18 /
Function created.
SQL>
SQL> col STATUS format a80
SQL> select tcpPing( '10.251.93.87', 80 ) as STATUS from dual;
STATUS
10.251.93.87:80 is alive. (+000000000 00:00:00.002422000)
SQL> select tcpPing( '10.251.93.87', 81 ) as STATUS from dual;
STATUS
10.251.93.87:81 did not respond. (ORA-29260: network error: TNS:operation timed
out) -
Consuming a Web service from Crystal reports 2008 - Error
Hi,
I want to consume a web service from Crystal Reports 2008. I created a New Connection using "XML and Web Services" and given WSDL url as the Web Service location. Crystal Report is able to connect to the WSDL and is displaying the tags correctly. When dragging the output to "Selected Tables' section, I am getting the following error:
"Invalid Argument Provided"
Details: Cannot support ArrayType input parameters.
Kindly help. Apparently this was a limitation in CR XI but does it still exist in CR 2008? Is there any patch available to resolve this issue?
Thanks,
Jaya
Edited by: jayakvr on Feb 17, 2011 10:47 AM
Edited by: jayakvr on Feb 17, 2011 10:48 AM
Edited by: jayakvr on Feb 17, 2011 10:48 AMThis issue is resolved now. I have installed the Service packs 1, 2 and 3 of CR2008 to overcome this error.
Thanks,
Jaya -
Calling a web service using a wsdl
I am trying to access a web service from a button in Lifecycle Designer. I have successfully done the following:
1. added a Data Connection that connects to the web service via a wsdl file
2. dragged the request, response, and button items onto the form. The button correctly reflects the web service location.
When I enter data into the request boxes (which works from another place calling the web service) and click the button, I expect the call to the web service to return the response into the response text box, but nothing happens. No error is reported.
I have confirmed that the web service is “Document/Literal”.
Does anyone have any ideas?
Thanks.Yip - Acrobat or Reader Extensions are needed.
Try right click on the PDF and open in Internet Explorer and try your submit (hopefully the domain is trusted) -
Hi,
I am working on a POC that is supposed to convert indd files to pdf (i.e. using of course the indesign server). Basically I want to call the IDS Web Service (located on a different machine perhaps), pass in the input file, the conversion script and retrieve the result as part of the WebService call?
Browsing the documentation, examples, etc in the SDK, I couldn't see how the above can be achieved without the client handling the file transfer. Surely I must be missing something ...
thanks
ChrisWhat do you mean with POC?
InDesign Server is too precious (i.e. license cost) to waste its time with file transfers.
For a smaller scale, let a separate process (some http or smb server) on the same server hardware handle the files - so that the InDesign Server can access them on the fastest local volume.
If you plan for bigger, use a dedicated server for file sharing (your choice of SMB, NFS or whatever), where the input files are prepared by the client process, so that your load balancer can immediately point the next free instance of the InDesign server farm to the file. In that case be prepared for some try and error - high speed file sharing can be tricky with files written from one side not yet visible or incomplete to the other side, locking problems, Unicode file name trouble, unexpected time stamps and so forth.
Btw, there is also an InDesign Server forum which would be more appropriate for such discussions.
Dirk -
Stateful web service implementation in Flex 2
Hello Gurus,
We are trying to invoke a web service located on a remote
server using MXML to create a purchase order. One of the
requirements is that we pass a cookie from our end to this web
service for authentication and session management purposes. Can
anyone throw some pointers on passing cookie information to
webservices from MXML or ActionScript?
A little bit of research resulted in the following link:
http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=LiveDocs_Parts&file=rpc_26.html
An extract from the above document states the following:
"Stateful web services
Flex uses Java server sessions to maintain the state of web
service endpoints that use cookies to store session information.
But unfortunately there are no examples on how to pass the
cookie information itself. Any pointers are appreciated . Thanks
much!This issue caused me much confusion and delay, so I hope that what I am about to say is correct. When Flex calls a web service that requires a stateful connection, the web service "cookie" is stored in the browser. Flash automatically attempts to access this cookie value, and returns it to the web service when additional web service operations are called. The cookie value will be placed in the "Request Headers".
A couple issues that gave me fits:
1. Safari browser on Mac had default "/preferences/Privacy/Block cookies" set to "From third parties and advertisers". This was preventing the cookie from being sent. I had to change this setting to "never".
2. I work inside the Flash API. Testing my movie never passed the cookie value back, and I have not figured out how to do this when compiling for Flash Player.
- NOTE: I am able to test compiling as an Adobe Air App just fine. I did this to get my web service calls/parsing of returned info correct first. Cookie issue and Cross Domain issues are not issues in Adobe Air, so I find this is a good place to get the web service working. After working compiling as Adobe Air, switch to compile for Flash Player to fine tuning other issues.
3. Cross Domain issues. Lots of posts on this. Pay close attention.
Thanks! -
Web Service Problem (CityStateLookup)
I recently attempted to re-create the City & State Lookup web service located within the Sample Application(v1.6) and have thus far failed miserably.
I went to the endpoint URL of 'http://iaswe2.oracleicenter.com:80/CityStateLookup-cr/CityStateLookup' and located the WSDL, copied that URL and went to create my own web service for my application.
I went to 'Shared Components', then 'Web Service References', and hit the 'Create' button. After selecting 'No', so I could manually enter the WSDL location, I pasted the following URL into the prompt 'http://iaswe2.oracleicenter.com/CityStateLookup-cr/CityStateLookup?WSDL' and created the reference.
After creating a 'Form on Web Service', I attempted to enter in a zip-code and press submit but failed to receive any data in the CITY, STATE, or LOOKUPRESPONSE fields. I went back to the web service reference and compared my information to the information provided by the reference created for the sample app, and noticed a few differences.
Here are the credentials for my reference:
Name: CityStateLookup
URL: http://iaswe2.oracleicenter.com:80/CityStateLookup-cr/CityStateLookup
Target Namespace: http://usps/CityStateLookup.wsdl
Operations
Operation Name: getCityState
SOAP Action: urn:usps-CityStateLookup/getCityState
Input Style: encoded
Input Namespace: urn:usps-CityStateLookup
Output Style: encoded
Output Namespace: urn:usps-CityStateLookup
Input Parameters
param0: xsd:string (a.k.a. zipcode)
Output Parameters
output: xsd1:usps_CityStateBean (xpath: /output)
city: xsd:string (xpath: /output/city)
lookupResponse: xsd:string (xpath: /output/lookupResponse)
state: xsd:string (xpath: /output/state)
I also ran a test on my reference and successfully grabbed a response. The request and the response were as follows for zipcode '50266':
Request -
<?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body><namesp1:getCityState xmlns:namesp1="urn:usps-CityStateLookup"><param0 xsi:type="xsd:string">50266</param0></namesp1:getCityState></SOAP-ENV:Body></SOAP-ENV:Envelope>
Response-
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:getCityStateResponse xmlns:ns1="urn:usps-CityStateLookup" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xmlns:ns2="http://usps/CityStateLookup.xsd" xsi:type="ns2:usps_CityStateBean">
<city xsi:type="xsd:string">WEST DES MOINES</city>
<lookupResponse xsi:type="xsd:string">ZIP CODE FOUND</lookupResponse>
<state xsi:type="xsd:string">IA</state>
</return>
</ns1:getCityStateResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Any ideas on why my reference doesn't work correctly but the sample application's does?
MarkI am having the same issue. The one thing I did notice when I compared the output from the sample and my app is the following;
RESPONSE;
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:getCityStateResponse xmlns:ns1="urn:usps-CityStateLookup" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xmlns:ns2="http://usps/CityStateLookup.xsd" xsi:type="ns2:usps_CityStateBean">
<city xsi:type="xsd:string">SANDUSKY</city>
<lookupResponse xsi:type="xsd:string">ZIP CODE FOUND</lookupResponse>
<state xsi:type="xsd:string">OH</state>
</return>
</ns1:getCityStateResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The major difference seems to be that the string 'urn:usps-' has been added to
xmlns:ns1="CityStateLookup"
making it
xmlns:ns1="urn:usps-CityStateLookup"
I built mine thru the wizards, trying to replace the compute the values prior to automatic row-processing, as well as calling the web service after retrieving ZIP from the database and computing city and state. In every case, I get a successfull call but a blank response value and no city and state.
Any help would be appreciated. -
Help - cannot access web service outside web proxy
I'm trying to access a public web service - and web proxy stops me from doing it.
Here is my code:
package test;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import net.webservicex.www.WeatherForecastLocator;
import net.webservicex.www.WeatherForecastSoap;
import net.webservicex.www.WeatherForecastSoapStub;
import net.webservicex.www.WeatherForecasts;
import java.net.*;
import java.io.*;
public class TestOutput {
public static void main(String[] args) {
initialiseConfiguration();
printForecast();
public static void initialiseConfiguration() {
System.setProperty("http.proxySet", "true");
System.setProperty("http.proxyHost", "proxyserver");
System.setProperty("http.proxyPort", "8080");
System.setProperty("http.proxyUser", "userid");
System.setProperty("http.proxyPassword", "password");
public static void printForecast() {
try {
WeatherForecastLocator wfl = new WeatherForecastLocator();
WeatherForecastSoap wfs = wfl.getWeatherForecastSoap();
WeatherForecasts forecasts = wfs.GetWeatherByZipCode("90210");
} catch (Exception e) {
e.printStackTrace();
}Here, I was using the test web service located in www.webservicex.net/WeatherForecast.asmx
I've created stubs using Eclipse (package net.webservicex.www) in another project, compiled into a jar, and imported into the test project.
The test is working beautifully from my home. It's failing in the office with the error:
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (407)Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
faultActor:
faultNode:
faultDetail:
{}:return code: 407
It's failing when it's trying to execute
WeatherForecasts forecasts = wfs.GetWeatherByZipCode("90210");
The "initialiseConfiguration" function is doing its job OK - it's actually helping me to go through the proxy - if I'm doing simple stuff like accessing internet sites. I've tested it - I can get to any external site and read from it. The moment I disable "initialiseConfiguration", I can't get through the proxy.
So, probably, the problem lies in the web services client classes generated by Eclipse and based on axis. Maybe, the code gets through the proxy, but then starts to do something without authentication??? (I'm not sure if it's possible at all, but who knows...)
I've read a lot of postings on this subject and couldn't find a solution that would work for me. I'm very surprised, because my situation is very common - there are more and more public web services, and most organisations have firewalls. Obviously, I'm making some very elementary mistake.
Please helpWe have the same problem, not with SOAP but with XML-RPC (err 407). We're still stumped, and i agree that the problem should be common, but i don't see the mistake, so it's not that obvious.
Hypothesis: the proxy is spying on the requests content , and filtering out xml. Can you check that ?
Message was edited by:
idiallo -
Flex 4 Web Service Introspection For Dynamic WSDL Locations
In Flex 3, introspecting a web service resulted in a constructor that allowed the location of the web service to change at runtime. It appears that the Web Service introspection tool now only allows the single WSDL URI that was specified in the WS Wizard. It this the case or am I just missing something?
Flex 3 introspected services would create a service class with the following constructor signatures:
private var service:MyWebService;
service= new MyWebService(null, wsdlLocation); // With parameters
or you could use:
service = new MyWebService(); //with no parameters
In Flex 4, it appears that you can only use:
service = new MyWebService();
So if you don't know the web server location until runtime, am I going to need to manually override the instrospected/generated _super_MyWebService.as class in order to get back the ability to point to different servers at runtime?
Anyone know why this has changed, or what the "new" way the Flash Builder 4 web service introspection tool uses for dynamic servers?
Thanks a bunch!In Flex 4, it appears that you can only use:
service = new MyWebService();
add
service.wsdl = "your wsdl";
However if you want this to work you have to remove the hardcoded wsdl from the
superclass otherwise it will not reset it,
C -
Location of the JARs for BO Web services SDK
Hi,
I want to use the web services SDK to access the crystal reports on a crystal reports 2011 server. I added all the JARs in the C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib folder but none of them contain classes from the com.businessobjects.dsws package which is root package for the web services SDK.
My questions:
Where are the JARs located ?
Is there sample code that excerices the usage of the BO BI 4.0 web services SDK ?
ThanksHi Asif,
Please have a look over below link
Web Services Sample Code: -
[https://wiki.sdn.sap.com/wiki/display/BOBJ/JavaWebServicesSDKSamples|https://wiki.sdn.sap.com/wiki/display/BOBJ/JavaWebServicesSDKSamples]
Web Services Developer Guide:
[http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_wssdk_dg_en.zip|http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_wssdk_dg_en.zip]
Getting Started with Web Service sdk:
[http://wiki.sdn.sap.com/wiki/display/BOBJ/GettingStartedwiththeWebServicesSDK|http://wiki.sdn.sap.com/wiki/display/BOBJ/GettingStartedwiththeWebServicesSDK]
Regards,
Rameez -
CAF service: import web services using Remote Location / File System
Hallo Experts
I use the NetWeaver DevStudio 7.1 SP5.
I have a CAF project and in this project I want to import one WebService as external service. I have chosen the option "Remote location/ File System" in the import web service wizard, then I enter the URL in the following step. But at the end of wizard I got the error "WSDL could not be downloaded because Server returned HTTP response code 403 for URL". The web service I've deployed and tested on the server. It runs well. Any Hints?
Thanks in advance
Kind Regards
PingHallo
I found out: if I enter one URL "http://xxxx.xx.ch:51000/ExampleService/ExampleBean?wsdl&mode=ws_policy". Afterwards I got the error "http://xxxx.xx.ch:51000/ExampleService/ExampleBean?wsdlmode=ws_policy". & ist not correct displayed. Is this the problem that I got 403 Error... It is a bug in SP5
Thanks if you can tell me some work-arround.
Ping -
Hi I m getting the below wxpection when i run test browser from workshop. please help me.
An unexpected exception occurred while attempting to locate the run-time information for this Web Service. Error: java.lang.reflect.InvocationTargetException:nullThamarai,
Can you provide more information on your jws ? Also can you start the server
from the command line with verbose option. This will cause
weblogic_debug.log to be generated in the domain folder.
Raj Alagumalai
Backline Workshop Support
"Thamarai Selvan" <[email protected]> wrote in message
news:[email protected]..
Hi I m getting the below wxpection when i run test browser from workshop.please help me.
>
An unexpected exception occurred while attempting to locate the run-timeinformation for this Web Service. Error:
java.lang.reflect.InvocationTargetException:null -
Create receive location refer to web service
Hi all
I have a web service, that contains some methods such as SubmitOrder, TransferOrder, SynchOrder.
Now I want create a receive location refer to this web service and start process biztalk application (Orchestration) when the TransferOrder method are invoked (called by SoapUI). Anyone please help me how to do it?
Thanks in advance!If I understand it correctly you have following situation –
Problem- You have a web service e.g. OrderProcessing which has following methods
SubmitOrder
TransferOrder
SyncOrder
And you have a BizTalk Orchestration say. TransferOrderOrch, Now you want to process a message by this orchestration when your webservice’s TransferOrder method is invoked. ?
In summary you want to connect /integrate your webservice to this BizTalk process?
Solution-
1-
Either you can expose your TransferOrderOrch orchestration as a WCF service ( if you are using BizTalk 2010 onwards or as a web service) and then consume this web service to your OrderProcessing Orchestration.
This will be loosely coupled and you can write maps to perform any type of message
translation at receive side suing a pipeline or BizTalk Map.
You can refer following articles to understand how to expose orchestration as web services
http://msdn.microsoft.com/en-us/library/bb745989.aspx
Or expose your TransferOrderOrch with same signature as your TransferOrder method has , and ask your consumers to use this. This may require significant changes at your Orderprocessing Web Service end, it all depends upon type of messages and how
many consumers are already consuming your service.
This is better approach in my opinion because this will reduce some latency as you are directly submitting messages to the BizTalk isolated host service layer.
Hope this helps. Feel free to post if you have any further queries.
Greetings,HTH
Naushad Alam
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or
Mark As Answer
alamnaushad.wordpress.com -
ABAP WebService Created but unable to locate in Web Services Navigator
Hi all,
We have got a SAP WAS 640 system and had created an RFC and converted into a Web Service via transaction code SE37. Have also confirmed to be working using the test page.
However, in the Web Services Navigator homepage, I am unable to find this newly created ABAP Web Service. Neither can I see the newly created ABAP Web Service in NetWeaver Developer Studio.
My question is, is the ABAP Web Service deployed in the ABAP stack or J2EE stack? How can I get to "see" the Web Service via the Web Service Navigator page? Did I miss any configurations?
Thanks for any help rendered.Hi,
Do you see you web service in the wsadmin trans? -
Location of Orchestrator Web Service Logs
Anybody know where Orchestrator hides any web service logs? i'm troubleshooting an issue.
Hi,
Hope it helps you:
http://technet.microsoft.com/en-us/library/hh912318.aspx
http://technet.microsoft.com/en-us/library/hh488400.aspx
Natalya
Maybe you are looking for
-
How to limit data range in a Line chart with Time Refresh Control
Hi All, I have a Line chart with Time Refresh Control and I would like to make some constraints to this navigation. For example, I would like to limit the user to navigate in a data range of 8 hours. Is this posible? Thanks in advance
-
How do I stop the message above from displaying in iTunes?:
-
Think Ive broke it :-(
Hi, I have just downloaded the latest version of iTunes, but its telling me I have new hardware and I need a disc to install it ?? When I open iTunes it wont play anything. Everything is still there it just will not play Been messing with this for tw
-
SCOM 2012 Reporting is missing a source
Hi, I have installed the reporting services. When I run a report there is missing a source parameter. The source field is grayed out -> see picture. How can I getting the reporting run?? Greeting Katharina
-
I discovered that my system log is 1.15GB. Can I trash this file, or is it important to leave as is? Thanks.