Web Service Trouble
I have written a flash application and was unsuccessful in consuming the web service from Amazon. The error that I got was "SOAP Response Version Mismatch" while making a call to:
URL: http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl
Method: Help
However, we were able to call the following successfully:
URL: http://www.ignyte.com/webservices/ignyte.whatsshowing.webservice/moviefunctions.asmx?wsdl
Method: GetTheatersAndMovies
Parameters: radius:25,zipCode:94110
Can you explain what could be wrong? Thanks in advance.
Walter
Check your namespace in SOAP call
Similar Messages
-
What might be the reason of this:
=================================
Creation of the SOAP Connection Factory Error.
javax.xml.soap.SOAPException: Unable to create SOAP Element Factory: Unable to create SOAP Factory: Provider com.systinet.saaj.soap.SOAPFactoryImpl not found
===================================
Best regards,
DenisTry the following in your pars before creating anything related to the WS:
Class.forName("com.systinet.saaj.soap.SOAPFactoryImpl");
(Or call this line during remote debugging)
This ensures that it is really the class that is missing/unreachable at runtime which causes the error. If this fails with a ClassNotFoundError in a single server, the server is definitely different. You might want to compare the <jdk_home>/jre/lib/ext and <jdk_home>/lib/ext folders, as well as the system class path.
Regards,
Armin -
Trouble shooting apex application calling web-service reference
Hi,
I am developing an APEX application which calls a web-service reference. i am looking for ideas as to how to log necessary information for trouble shooting.
i already thought about this -
1. the response from the web-service is displayed to the user (via a collection object).
but the issue is i want the administrator (who logs in at a later time) to see that an error occurred or what was the response from the web-service.
Is there any in-built way of accessing this information (is it first of all stored somewhere automatically ?). the one possible solution i see is to create a table and log the info into this table along with user and session id.
any ideas / pointers will greatly help me.
Regards,
RamakrishnanIt looks like you won't be able to test web service calls on apex.oracle.com. see this WebService on apex.oracle.com
Edited by: tfa on Mar 18, 2013 9:59 AM -
Trouble With Web Services Tutorial Examples
I am having trouble getting the Web Services Tutorial examples to run.
For example, when I compiled the hello1 example, and tried to run it, I got a directory listing. All the directory listing contained was the dukewaving.gif file.
When I tried to run hello2, I got something similar. This time though, there were two jsp files in the listing. By clicking on the first one, I was able to run the application.
Now I can't run the bookstore1 example. I went back a second time, to be sure that I was following the instructions exactly as written. I am gettng an HTTP Status 404 - Servlet BookStoreServlet is not available.
I don't know why this is happening. There were no errors when I ran the Ant targets, and the WAR file did get copied to the webapps directory.
I would be very grateful for any help. I am very new to Java and am finding this very frustrating.
Thank You,
ChrissyThis is what's in my log file. Why is the servlet being marked as unavailable?
2004-03-13 21:11:37 Manager: deploy: Deploying web application at '/bookstore1'
2004-03-13 21:11:37 Manager: Uploading WAR file to C:\jwsdp-1.3\webapps\bookstore1.war
2004-03-13 21:11:37 Manager: Extracting XML file to C:\jwsdp-1.3\conf\Catalina\localhost\bookstore1.xml
2004-03-13 21:11:37 Manager: install: Installing context configuration at 'file:/C:/jwsdp-1.3/conf/Catalina/localhost/bookstore1.xml' from 'jar:file:/C:/jwsdp-1.3/webapps/bookstore1.war!/'
2004-03-13 21:13:47 Marking servlet BookStoreServlet as unavailable -
Trouble with xsd:any and web services
I am trying to generate client code from a WSDL for a getter and setter for a chunk of XML.
The getter:<s:element name="GetData">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="id" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetDataResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetDataResult">
<s:complexType>
<s:sequence>
<s:any/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>The setter:<s:element name="SetData">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="id" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="data">
<s:complexType>
<s:sequence>
<s:any/>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="SetDataResponse">
<s:complexType/>
</s:element>When we use the <autotype> and <clientgen> ant tasks to generate our web service client code from the WSDL, we're getting the following warnings:
[autotype] Autotyping for wsdl http://xxx.xxx.xxx.xxx:8080/xxx/xxx.asmx?WSDL
[autotype] WARNING: Unable to fully map ['http://xxx.xxx/xxx/xxx/2005/11/30']:GetDataResultAnonType using javax.xml.soap.SOAPElement
[autotype] WARNING: Unable to fully map ['http://xxx.xxx/xxx/xxx/2005/11/30']:dataAnonType using javax.xml.soap.SOAPElement
[autotype] WARNING: Unable to fully map ['http://xxx.xxx/xxx/xxx/2005/11/30']:SetData using javax.xml.soap.SOAPElement
[autotype] WARNING: Unable to fully map ['http://xxx.xxx/xxx/xxx/2005/11/30']:GetDataResponse using javax.xml.soap.SOAPElementOur client code for the getData() call looks mostly correct. There's a GetData object created with an "id" field. Typically, I've seen that when the web service method calls are generated, it gives me two ways to call:
- one that takes a bean (in this case, a GetData object)
- one that takes the actual fields (in this case, just a String)
Only the method that takes the bean is getting generated, but that's not a big deal.
The client code for the setData() call, however, is all screwed up. There is no SetData bean object, and the only method call that gets generated takes just a SOAPElement, the "id" field is left completely out. Without any way to specify the id of the data I'm setting, the setData() method call is worthless.
My first suspicion was that the Ant tasks did not know how to handle the <any> tag. But we're getting exactly what we want, a SOAPElement object returned in the getter and a SOAPElement to set in the setter. The problem is that it's leaving out the "id" string in the setter. I guess I'm having a hard time seeing why it's almost working.
Anyone have any ideas? I almost feel like this could be a bug. Sorry for the long post.
TobinHi!
Did you ever solve this? I get similar warnings for our wsdl, and can't figure out if they are the kind I can ignore, or if they indicate that my code will go down the drain :).
/JMK -
Problem compiling java file to access web service! newbie troubles !
I am new to web services and this is my first program...
I am compiling java file which has import statement like:
import org.apache.soap.util.xml.*;
import org.apache.soap.*;
import org.apache.soap.rpc.*;
It says ----- package org.apache.soap.util.xml does not exist as one of errors..
I have a folder that I named soap myself and I have activation.jar,serces.jar,mail.jar,soap.jar in it.
I added c:\soap in my classpath and this was supposed to be the quickstart way to try an example out...
but it gives me compilation errors... what should I do ?You'll need to specify each jar file in the classpath. c:\soap\xerces.jar;c:\soap\sax.jar;....
-
Trouble Communicating with Document-Style Web Service
I have a flash app that currently communicates with a
RPC-style web service. I changed the web service to be
document-style, and the flash app no longer sends valid requests. I
was under the impression that one could simple swtich styles, and
flash would play along. Apparently, this is not the case. Does
anyone have an insight in this area?Clarified with Partick Calahan, who is maintaining this tool.
Currently, doc style is not handled by this tool. I guess it will be
supported in the future.
Thanks.
"Karthik V" <[email protected]> wrote in message
news:[email protected]..
I'm using WebLogic Webservice Explorer v.02 (WEX).
I'm able to test rpc style web services without any problem.
But whenever I try to open a document style web service WSDL, I get the
following exception.
I would appreciate if you have any suggestions for the to over come this
issue.
java.lang.IllegalArgumentException at
weblogic.webservice.tools.wex.MessagePanel.<init>(MessagePanel.java:33)at
>
weblogic.webservice.tools.wex.ServicePanel.operationChanged(ServicePanel.jav
a:153) at
weblogic.webservice.tools.wex.ServicePanel.portChanged(ServicePanel.java:133
) at
weblogic.webservice.tools.wex.ServicePanel.serviceChanged(ServicePanel.java:
121) at
weblogic.webservice.tools.wex.ServicePanel.<init>(ServicePanel.java:69)at
>
weblogic.webservice.tools.wex.tasks.FetchWsdlTask.perform(FetchWsdlTask.java
:45) at
weblogic.webservice.tools.wex.tasks.TaskQueue.run(TaskQueue.java:47) at
java.lang.Thread.run(Unknown Source) -
Trouble compiling web service client file
Hi,
I am trying to deploy a test web services implementation on JBoss 3.2.1 and Axis 1.1RC2. The problem is, I cannot even compile my client code (the one that invoke the web services)...it seems that the java compiler cannot locate the following packages:
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
even though I have set my classpath (in the environment var part of my Win2k box) to: C:\axis-1_1RC2\lib\axis.jar;C:\axis-1_1RC2\lib\jaxrpc.jar;C:\axis-1_1RC2\lib\saaj.jar;C:\axis-1_1RC2\lib\commons-logging.jar;C:\axis-1_1RC2\lib\commons-discovery.jar;C:\axis-1_1RC2\lib\wsdl4j.jar;C:\axis-1_1RC2\lib\;C:\axis-1_1RC2\[rest of classpath truncated]
Has anyone experienced something similar? I'll award Duke dollars to the first person getting the right solution. Thanks!
Here are the error messages:
C:\web_clients>javac DataUserClient.java
DataUserClient.java:1: package org.apache.axis.client does not exist
import org.apache.axis.client.Call;
^
DataUserClient.java:2: package org.apache.axis.client does not exist
import org.apache.axis.client.Service;
^
DataUserClient.java:3: package javax.xml.namespace does not exist
import javax.xml.namespace.QName;
^
DataUserClient.java:26: cannot resolve symbol
symbol : class Service
location: class DataUserClient
Service myWebServ= new Service(url, "StandardPersonData");
^
DataUserClient.java:26: cannot resolve symbol
symbol : class Service
location: class DataUserClient
Service myWebServ= new Service(url, "StandardPersonData");
^
DataUserClient.java:27: cannot resolve symbolHi,
I had the same problem with my client too. The problem is with your classpath. You have to set it at the command prompt as well as editing the setclasspath.bat file. The full path to where you libs are stored is required. eg:
set classpath=%classpath%;C:\axis-1_1\lib\axis.jar;C:\axis-1_1\lib\jaxrpc.jar...etc
I tried to set the classpath using %axisDirectory%\lib\axis.jar ...etc but it didnt work for whatever reason. The above method seems to eliminate all errors. At the moment im just running axis 1.1 under tomcat 4.1.
Hope that helps :-) -
Trouble Publishing a Web Service in Rich Client
I have been working on trying to create a web service in Rich Client and keep getting this blank window.I'm not sure what the problem is but one thing that I notice about this window is the Java logo on the top left.I tried uninstalling and downgrading my Java but that didn't help. I currently have Java build 1.6.0_45-b06 installed. My Rich Client version is 12.5.3 with the 1475 build. I believe it is software related because I had a coworker try and us his user name and passowrd on my computer with his administrator account and he was getting this window as well.
Another problem I am having is getting the Web Services to refresh. There are times when it will just say "Refreshing, please wait...". When I click the refresh button will attempt to refresh for a half a second and then stop.
Best,
RyanHi Ryan,
Will you please provide the details of BO server version? And for java and software related queries please review your configurations with PAM (Product Availability Matrix) available at SAP marketplace.
Regards,
Aashutosh -
Trouble Creating Web Service from WSDL in 9.2
I am following the guide at: http://edocs.bea.com/wls/docs92/webserv/setenv.html#wp214576 for creating a web service from wsdl using Ant. When i run the "wsdlc" task, it creates a Jar with source files but no class files. This seems odd.
So, i have to then manually unjar, compile, and re-jar it to work? And what about using the types in an IDE like Eclipse? I have to un-jar the source files and include them in my project? This makes no sense. Why not have the ant task compile the classes in the jar?I am following the guide at: http://edocs.bea.com/wls/docs92/webserv/setenv.html#wp214576 for creating a web service from wsdl using Ant. When i run the "wsdlc" task, it creates a Jar with source files but no class files. This seems odd.
So, i have to then manually unjar, compile, and re-jar it to work? And what about using the types in an IDE like Eclipse? I have to un-jar the source files and include them in my project? This makes no sense. Why not have the ant task compile the classes in the jar? -
Trouble calling htp in a web service procedure
I have a procedure that I was calling directly within an APEX application that allowed the user to download XML files, as follows:
PROCEDURE download_my_file (
p_resid IN VARCHAR2
, p_filename VARCHAR2
, p_filter_str IN VARCHAR2 DEFAULT NULL
AS
v_mime VARCHAR2 (48) := NULL;
v_length NUMBER;
v_file_name VARCHAR2 (2000);
v_clob CLOB;
v_buf VARCHAR2 (32000);
v_amt NUMBER := 4000;
v_pos NUMBER := 1;
BEGIN
IF p_filter_str IS NULL
THEN
SELECT EXTRACT (VALUE (r), '/*').getclobval ()
, DBMS_LOB.getlength (EXTRACT (VALUE (r), '/*').getclobval ())
INTO v_clob
, v_length
FROM TABLE (XMLSEQUENCE ((SELECT xdburitype (any_path).getxml ()
FROM resource_view
WHERE resid = p_resid))) r;
ELSE
v_clob:= repos_datasets.dyn_dset_licensed_location_xml(p_filter_str=>p_filter_str);
v_length:=DBMS_LOB.getlength (v_clob);
END IF;
-- set up HTTP header
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Content-length: ' || v_length);
HTP.p ('Content-Disposition: attachment; filename="' || NVL(p_filename,'user_query.xml') || '"');
OWA_UTIL.http_header_close;
BEGIN
v_pos := 1;
LOOP
DBMS_LOB.READ (v_clob
, v_amt
, v_pos
, v_buf
v_pos := v_pos + v_amt;
HTP.prn (v_buf);
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
END;
END download_my_file;
The procedure works perfectly when a process calls the procedure directly from the database, however, I now have a requirement whereby this download facility needs to be accessed through a web-service: merely creating a web-service for the procedure and running it through a page process returns a 'ORA-06502: PL/SQL: numeric or value error' message. I assumed as APEX is a web environment that the htp package functions would use the session that APEX had started but obviously they are not.
How would I go about manually creating a session (I presume that's what's required) that would support the htp calls and allow the user to download the files exactly as they could with a direct call to the database procedure? I know it involves some initialization using the OWA package but this is alien territory for me, can anyone help at all?Has anyone come across a similar scenario? There are plenty examples of calling web-enabled procedures directly from APEX but I must call such a procedure through a web-service reference. Failing anyone having a similar problem, could someone explain to me how the Common Gateway interface variables are set when an APEX application calls a web enabled procedure?
I've included the code for the procedure I'm trying to run which I have altered to include CGI environment parameters: I'm getting these parameters by calling owa_util.get_cgi_env in the calling APEX application and passing the individual values to the procedure through the web service reference. I chose those variables I thought would tell the procedure where to return the HTML to but I'm just getting a blank page.
Anyone any suggestions? (code below)
PROCEDURE download_my_file (
p_resid IN VARCHAR2
, p_filename VARCHAR2
, p_filter_str IN VARCHAR2 DEFAULT 'sepa_region = ''North'''
,p_SERVER_PORT VARCHAR2
,p_SERVER_NAME VARCHAR2
,p_QUERY_STRING VARCHAR2
,p_HTTP_USER_AGENT VARCHAR2
,p_HTTP_HOST VARCHAR2
,p_HTTP_REFERER VARCHAR2
,p_DAD_NAME VARCHAR2
,p_REQUEST_CHARSET VARCHAR2
,p_HTTP_COOKIE VARCHAR2
AS
v_mime VARCHAR2 (48) := NULL;
v_length NUMBER;
v_file_name VARCHAR2 (2000);
v_clob CLOB;
v_buf VARCHAR2 (32000);
v_amt NUMBER := 4000;
v_pos NUMBER := 1;
namelist OWA.vc_arr;
valuelist OWA.vc_arr;
htpbuffer HTP.htbuf_arr;
bufrows INTEGER := 99999999;
rc INTEGER;
BEGIN
IF p_filter_str IS NULL
THEN
SELECT EXTRACT (VALUE (r), '/*').getclobval ()
, DBMS_LOB.getlength (EXTRACT (VALUE (r), '/*').getclobval ())
INTO v_clob
, v_length
FROM TABLE (XMLSEQUENCE ((SELECT xdburitype (any_path).getxml ()
FROM resource_view
WHERE resid = p_resid))) r;
ELSE
v_clob:= repos_datasets.dyn_dset_licensed_location_xml(p_filter_str=>p_filter_str);
v_length:=DBMS_LOB.getlength (v_clob);
END IF;
namelist (1) := 'SERVER_PORT';
namelist (2) := 'SERVER_NAME';
namelist (3) := 'QUERY_STRING';
namelist (4) := 'HTTP_USER_AGENT';
namelist (5) := 'HTTP_HOST';
namelist (6) := 'HTTP_REFERER';
namelist (7) := 'DAD_NAME';
namelist (8) := 'REQUEST_CHARSET';
namelist (9) := 'HTTP_COOKIE';
valuelist (1) := p_SERVER_PORT;
valuelist (2) := p_SERVER_NAME;
valuelist (3) := p_QUERY_STRING;
valuelist (4) := p_HTTP_USER_AGENT;
valuelist (5) := p_HTTP_HOST;
valuelist (6) := p_HTTP_REFERER;
valuelist (7) := p_DAD_NAME;
valuelist (8) := p_REQUEST_CHARSET;
valuelist (9) := p_HTTP_COOKIE;
-- initiliase OWA and configure a basic CGI environment
DBMS_SESSION.reset_package; reset PL/SQL PGA maintaining package state
rc := OWA.initialize;
OWA.init_cgi_env (9
, namelist
, valuelist
htp.showpage ();
-- set up HTTP header
-- use an NVL around the mime type and
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Content-length: ' || v_length);
HTP.p ('Content-Disposition: attachment; filename="' || NVL(p_filename,'user_query.xml') || '"');
OWA_UTIL.http_header_close;
owa_util.print_cgi_env;
--wpg_docload.download_file( v_clob );
BEGIN
v_pos := 1;
LOOP
DBMS_LOB.READ (v_clob
, v_amt
, v_pos
, v_buf
v_pos := v_pos + v_amt;
HTP.prn (v_buf);
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
END;
Message was edited by:
user592383 -
Trouble using web service results
I am trying to consume a .NET generated web service. I successfully generated the
web service based on the WSDL and Apex could see all of the methods/actions.
However, when I make a call to this service, either via the web service test module,
or from the "report on a web service" I don't get a result set that I can use because
all of the < and > are escaped with & lt l; and & gt ; .
I also created a manual reference to one of the methods. Here is the call:
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body><ns1:GetFacilitySiteAsXml xmlns:ns1="http://ecy.wa.gov/FacilitySiteSearch/WebService">">
<fsId xsi:nil="true" /><ns1:fsName>#P229_FAC_NAME#</ns1:fsName><ns1:nameSearchType>B</ns1:nameSearchType>
<ns1:alternateNameReqFlag>N</ns1:alternateNameReqFlag>
<ns1:programId></ns1:programId>
<ns1:addressLine1></ns1:addressLine1>
<ns1:cityName></ns1:cityName>
<ns1:countyName></ns1:countyName>
<ns1:stateName></ns1:stateName>
<ns1:zipCode></ns1:zipCode>
</ns1:GetFacilitySiteAsXml></SOAP-ENV:Body>
</SOAP-ENV:Envelope>What I get back is
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetFacilitySiteAsXmlResponse xmlns="http://ecy.wa.gov/FacilitySiteSearch/WebService"><GetFacilitySiteAsXmlResult>& lt ;FacilitySiteList& gt ;
& lt ;FacilitySite& gt ;
& lt ;FS_ID& gt ;1519876& lt ;/FS_ID& gt ;
& lt ;COMMON_NM& gt ;Austin Co& lt ;/COMMON_NM& gt ;
& lt ;LINE_1_AD& gt ;1601 LIND AVE SW & lt ;/LINE_1_AD& gt ;
& lt ;CITY_NM& gt ;RENTON & lt ;/CITY_NM& gt ;
& lt ;GIS_VER_IND_CD& gt ;Y& lt ;/GIS_VER_IND_CD& gt ;
& lt ;STATE_CD& gt ;WA& lt ;/STATE_CD& gt ;
& lt ;ZIP_CD& gt ;98055 & lt ;/ZIP_CD& gt ;
& lt ;GIS_CALC_LAT_DECIMAL_NR& gt ;47.46504& lt ;/GIS_CALC_LAT_DECIMAL_NR& gt ;
& lt ;GIS_CALC_LONG_DECIMAL_NR& gt ;122.22355& lt ;/GIS_CALC_LONG_DECIMAL_NR& gt ;
& lt ;LAST_UPD_DT& gt ;1997-06-26T00:00:00-07:00& lt ;/LAST_UPD_DT& gt ;
& lt ;/FacilitySite& gt ;
& lt ;FacilitySite& gt ;
& lt ;FS_ID& gt ;3697762& lt ;/FS_ID& gt ;
& lt ;COMMON_NM& gt ;Austin Farm& lt ;/COMMON_NM& gt ;
& lt ;LINE_1_AD& gt ;320 Elma Gate Rd E & lt ;/LINE_1_AD& gt ;
& lt ;CITY_NM& gt ;Oakville & lt ;/CITY_NM& gt ;
& lt ;GIS_VER_IND_CD& gt ;Y& lt ;/GIS_VER_IND_CD& gt ;
& lt ;STATE_CD& gt ;WA& lt ;/STATE_CD& gt ;
& lt ;ZIP_CD& gt ;98568-9614& lt ;/ZIP_CD& gt ;
& lt ;GIS_CALC_LAT_DECIMAL_NR& gt ;46.832520217201633& lt ;/GIS_CALC_LAT_DECIMAL_NR& gt ;
& lt ;GIS_CALC_LONG_DECIMAL_NR& gt ;123.18333821662898& lt ;/GIS_CALC_LONG_DECIMAL_NR& gt ;
& lt ;LAST_UPD_DT& gt ;2002-08-29T11:21:23.08-07:00& lt ;/LAST_UPD_DT& gt ;
& lt ;/FacilitySite& gt ;
& lt ;FacilitySite& gt ;
& lt ;FS_ID& gt ;2049& lt ;/FS_ID& gt ;
& lt ;COMMON_NM& gt ;AUSTIN MACK& lt ;/COMMON_NM& gt ;
& lt ;LINE_1_AD& gt ;2739 6TH AVE S & lt ;/LINE_1_AD& gt ;
& lt ;CITY_NM& gt ;SEATTLE & lt ;/CITY_NM& gt ;
& lt ;GIS_VER_IND_CD& gt ;Y& lt ;/GIS_VER_IND_CD& gt ;
& lt ;STATE_CD& gt ;WA& lt ;/STATE_CD& gt ;
& lt ;ZIP_CD& gt ;98134 & lt ;/ZIP_CD& gt ;
& lt ;GIS_CALC_LAT_DECIMAL_NR& gt ;47.57915& lt ;/GIS_CALC_LAT_DECIMAL_NR& gt ;
& lt ;GIS_CALC_LONG_DECIMAL_NR& gt ;122.32588& lt ;/GIS_CALC_LONG_DECIMAL_NR& gt ;
& lt ;LAST_UPD_DT& gt ;1999-03-19T00:00:00-07:00& lt ;/LAST_UPD_DT& gt ;
& lt ;/FacilitySite& gt ;
& lt ;FacilitySite& gt ;
& lt ;FS_ID& gt ;1634623& lt ;/FS_ID& gt ;
& lt ;COMMON_NM& gt ;Austin Mike& lt ;/COMMON_NM& gt ;
& lt ;LINE_1_AD& gt ;16407 N SUNRISE DR & lt ;/LINE_1_AD& gt ;
& lt ;CITY_NM& gt ;NINE MILE FALLS & lt ;/CITY_NM& gt ;
& lt ;GIS_VER_IND_CD& gt ;Y& lt ;/GIS_VER_IND_CD& gt ;
& lt ;STATE_CD& gt ;WA& lt ;/STATE_CD& gt ;
& lt ;ZIP_CD& gt ;99026 & lt ;/ZIP_CD& gt ;
& lt ;GIS_CALC_LAT_DECIMAL_NR& gt ;47.809727& lt ;/GIS_CALC_LAT_DECIMAL_NR& gt ;
& lt ;GIS_CALC_LONG_DECIMAL_NR& gt ;117.569984& lt ;/GIS_CALC_LONG_DECIMAL_NR& gt ;
& lt ;LAST_UPD_DT& gt ;2005-07-21T22:17:23.177-07:00& lt ;/LAST_UPD_DT& gt ;
& lt ;/FacilitySite& gt ;
& lt ;FacilitySite& gt ;
& lt ;FS_ID& gt ;63488523& lt ;/FS_ID& gt ;
& lt ;COMMON_NM& gt ;Austin Pavolka& lt ;/COMMON_NM& gt ;
& lt ;LINE_1_AD& gt ;7711 CUSTER RD W & lt ;/LINE_1_AD& gt ;
& lt ;CITY_NM& gt ;TACOMA & lt ;/CITY_NM& gt ;
& lt ;GIS_VER_IND_CD& gt ;Y& lt ;/GIS_VER_IND_CD& gt ;
& lt ;STATE_CD& gt ;WA& lt ;/STATE_CD& gt ;
& lt ;ZIP_CD& gt ;98467-2643& lt ;/ZIP_CD& gt ;
& lt ;GIS_CALC_LAT_DECIMAL_NR& gt ;47.1872& lt ;/GIS_CALC_LAT_DECIMAL_NR& gt ;
& lt ;GIS_CALC_LONG_DECIMAL_NR& gt ;122.51625& lt ;/GIS_CALC_LONG_DECIMAL_NR& gt ;
& lt ;LAST_UPD_DT& gt ;1997-06-23T00:00:00-07:00& lt ;/LAST_UPD_DT& gt ;
& lt ;/FacilitySite& gt ;
& lt ;FacilitySite& gt ;
& lt ;FS_ID& gt ;27413953& lt ;/FS_ID& gt ;
& lt ;COMMON_NM& gt ;AUSTIN POWDER CO& lt ;/COMMON_NM& gt ;
& lt ;LINE_1_AD& gt ;2852 CENTRALIA ALPHA RD & lt ;/LINE_1_AD& gt ;
& lt ;CITY_NM& gt ;ONALASKA & lt ;/CITY_NM& gt ;
& lt ;GIS_VER_IND_CD& gt ;Y& lt ;/GIS_VER_IND_CD& gt ;
& lt ;STATE_CD& gt ;WA& lt ;/STATE_CD& gt ;
& lt ;ZIP_CD& gt ;98570-9600& lt ;/ZIP_CD& gt ;
& lt ;GIS_CALC_LAT_DECIMAL_NR& gt ;46.62614& lt ;/GIS_CALC_LAT_DECIMAL_NR& gt ;
& lt ;GIS_CALC_LONG_DECIMAL_NR& gt ;122.78492& lt ;/GIS_CALC_LONG_DECIMAL_NR& gt ;
& lt ;LAST_UPD_DT& gt ;2001-06-01T00:00:00-07:00& lt ;/LAST_UPD_DT& gt ;
& lt ;/FacilitySite& gt ;
& lt ;/FacilitySiteList& gt ;</GetFacilitySiteAsXmlResult></GetFacilitySiteAsXmlResponse></soap:Body></soap:Envelope>NOTE: I added the spaces into the & lt ; so that they would not be translated to <
This issue I appear to be having is that when this result is put into the collection and
then converted into XML everything between <GetFacilitySiteAsXmlResult> and
</GetFacilitySiteAsXmlResult> is considered a single string. Therefore using XPath
queries to get the FsID and Common Name doesn't work.
I talked to the developers of this service and they believe this is a character set issue.
I confirmed that my DAD is using UTF-8. So it would appear as though Apex and the
Web Service are on the same page here. The developer followed up with the following:
From http://www.w3.org/TR/2004/REC-xml-20040204/
2.4 Character Data and Markup
Text consists of intermingled character data and markup. [Definition: Markup takes the
form of start-tags, end-tags, empty-element tags, entity references, character
references, comments, CDATA section delimiters, document type declarations,
processing instructions, XML declarations, text declarations, and any white space that
is at the top level of the document entity (that is, outside the document element and
not inside any other markup).]
[Definition: All text that is not markup constitutes the character data of the document.]
The ampersand character (&) and the left angle bracket (<) MUST NOT appear in their
literal form, except when used as markup delimiters, or within a comment, a processing
instruction, or a CDATA section. If they are needed elsewhere, they MUST be escaped
using either numeric character references or the strings "&" and "<" respectively. The
right angle bracket (>) MAY be represented using the string ">", and MUST, for
compatibility, be escaped using either ">" or a character reference when it appears in
the string "]]>" in content, when that string is not marking the end of a CDATA section.
In the content of elements, character data is any string of characters which does not
contain the start-delimiter of any markup and does not include the CDATA-
section-close delimiter, "]]>". In a CDATA section, character data is any string of
characters not including the CDATA-section-close delimiter, "]]>".
To allow attribute values to contain both single and double quotes, the apostrophe or
single-quote character (') MAY be represented as "'", and the double-quote character (")
as """.Do I need to do something else in order to read and parse this result set as XML
properly?
Regards, TonyThanks for the reply but we are using Netweaver 2004. I want the document for loading data from webservice to BW . The webservice is built on J2ee development .Please send me the links.
I am assign points for u r reply.
Thanks and regards,
shahid -
Anyone have trouble connecting to web services with CF10?
I'm trying to connect to InDesign server running in the same box @ http://localhost:18383/service?wsdl and this gives me the error "Web service operation RunScript with parameters ... cannot be found". I tried toggling web service version in CF admin to 1 and 2. I tried with CF updates, without updates. Tried in a different box, it is the same.
When I dump my web service object, before invoking the function, it display WSDL structure correctly with all functions in it, including "RunScript". So I guess, create object part worked correctly.
Uninstalled CF10, Installed CF9 in the same box, it works fine.
Has anyone experienced something similar? Is there any limitation in TomCat executing web services in a high port (18383)?
Update:
I send the SOAP request to InDesign server manually using CFHTTP and it works in CF10. Seems like CF10 somehow did not respect the WSDL instructions.Nataliya,
Is the printer connected to a wireless network?
-------------How do I give Kudos? | How do I mark a post as Solved? -------------------------------------------------------- -
Trouble creating Web Service Reference
I am using Apex 3.0 and trying to create a new web service reference from the Shared Components page.
Clicking the 'Web Service Refernces' link however takes me back to the login screen ! The Url shown in the browser is as below
http://localhost:7777/pls/apex30/f?p=4550:1:393172515481281::::FSP_AFTER_LOGIN_URL:\f?p=4000|170|1940120004338053||NO|||\
Any idea why this may be happening ?Totally Weird !
I cleaned out the contents of the FLOW_PAGE_CACHE table and all is fine now ! -
Web service connector's trouble
I have created web service connector in portal, specified wsdl url. How i can use it in my java programm, like a integrating 3rd-Party search engines into KM index management or other? The likn(http://help.sap.com/saphelp_nw04/helpdata/en/e1/d0d240caeb752ae10000000a155106/frameset.htm) have poor description and i have not understand how work with web service connector. Please show me example or help to start on it.
I would suggest setting up your model so that when you select a region on the map, this triggers the web service connector.
Basically, the insert in of the map must be the same cell as the trigger cell for the web service connector.
Once setup properly, you can then set the web service connector's transparency to zero to clean things up.
Maybe you are looking for
-
I have an iPod Nano generation six, and since I had to get a new hard drive on my Macbook pro, the nano no longer registers in iTunes. My other devices show up fine. I have followed all the trouble shooting advice,and nothing works.
-
My ipad is so slow all of a sudden. wont load safari or games. Why?
I used my Ipad this morning and an hour later nothing wants to load. its really making me mad what can i do? do i have to reset the whole thing
-
Tried to open my old MacBook. Couldn't remember password. Followed suggestion to reinstall hardware. Now startup disk is stuck in computer and it won't turn on. I keep getting a message saying I need to restart the computer. When I hold down pow
-
Not Allowed To Install Adobe Reader 9
I'm using a G4 eMac with 640 megs of RAM running Mac OS 10.4.11. According to the system requirements, I should be able to install Reader 9 with no problem. Download of the install package went fine. I'm able to open the Adobe Reader 9 install, but t
-
How to write file into multiple directories by using file adapter?
i need to write my file into multiple directories,i able to do in single directory.But i need to write to muliple directories.Please help me out.Thanks in advance.