Consume SharePoint Webservice with Coldfusion
Has anyone been able to consume a SharePoint web service with
Coldfusion? Any examples, resources or tips? A basic example would
be to pull in a list.
Thanks
Dwight
My group is also having trouble with this. The problems seems
to be related to CF not being able to use NTLM authentication.
Thanks,
Tom
Similar Messages
-
Help with Consuming a Webservice with the compact framework
Hi all,
i want to consume a SAP WebService within .NET in a smart device application. When I create the proxy, I get the following procedure in the .cs class:
<i>[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.sap.com/_-ICO_-CM_XML_CREATE", RequestElementName="_-ICO_-CM_XML_CREATE", RequestNamespace="urn:sap-com:document:sap:rfc:functions", ResponseElementName="_-ICO_-CM_XML_CREATE.Response", ResponseNamespace="urn:sap-com:document:sap:rfc:functions", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)][return: System.Xml.Serialization.XmlElementAttribute("SUBRC", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]public string ICOCM_XML_CREATE([System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string ORDERNR, [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string ROUTE, [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string TESTRUN, [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string TOURNO, [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string XML_FILE_LOCAL, [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string XML_FILE_SERVER, [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] out string XML_STRING) {object[] results = this.Invoke("_ICO_CM_XML_CREATE", new object[] {ORDERNR,ROUTE,TESTRUN,TOURNO,XML_FILE_LOCAL,XML_FILE_SERVER});XML_STRING = ((string)(results[1]));return ((string)(results[0]));}</i>
When I compile the project I get the follwing error for each occurance of the "Form" Attribute :
"<b>'System.Xml.Serialization.XmlElementAttribute' does not contain a definition for 'Form'" </b>
When I try to consume this webservice with a "normal" kind of application, such as a windows-application, everything is ok.
But when trying to use it with the compact framework, the error occurs.
Is anyone outhere who can help me?
Thank you
RegardingsIt seems that the "Form" property of the XmlElementAttribute was missing in Compact Framework 1.1. It does exist in Compact Framework 2.0.
You can try removing the "Form=System.Xml.Schema.XmlSchemaForm.Unqualified" entries from the proxy, but I'm not sure of it will still correctly work: For in-parameter it should be Ok to skip "Form=", but for out-paramters and result it could have the effect that no data is received.
In this case the best option may be to upgrade to Compact Framework 2.0. -
Consumming java webservices in coldfusion
could somebody show me how to consume this webservice from
within coldfusion?
http://www.ripedev.com/webservices/ZipCode.asmx?WSDL"
right now I invoke it as follows:
<cfinvoke
webservice="
http://www.ripedev.com/webservices/ZipCode.asmx?WSDL"
method="ZipCodeToCityState" ZipCode="12210"
returnvariable="returnedText" >
</cfinvoke>
<cfoutput>
#arraylen(variables.returnedText)#
</cfoutput>
And this is what i get
com.ripedev.xsd.ZipCodeResults_xsd.ArrayOfAnyType@aaa1d576 .
This actually has no meaning to me.
Thanks
amosI'm just learning how to consume webservice stuff but this
should help as I got a result. See my code snippet below.
Basically I did some cfdumps to see what the objects look
like. This is from an empirical view as I don't understand yet. The
object comes back with methods. You then use those methods to get
values. I chose to use the getAnyType method. I did this as I used
another tool, soapscope from www.mindreef.com (30 day eval) which
really simplifies how to call webservices. It's worth the cost.
Basically I invoked the service via soapscope and looked at
the returned xml.
It looked like:
<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>
<ZipCodeToCityStateResponse xmlns="
http://ripedev.com/xsd/ZipCodeResults.xsd">
<ZipCodeToCityStateResult>
<anyType xsi:type="xsd:string">Albany,
NY</anyType>
</ZipCodeToCityStateResult>
</ZipCodeToCityStateResponse>
</soap:Body>
</soap:Envelope>
Note that the result was in a value of anyType. Thus I picked
getAnyType method
I hope this helps ya but I'm still quite a newbie to this.
This link help me understand a little more about webservice
http://tutorial292.easycfm.com/
Zip test WS Object
object of com.ripedev.xsd.ZipCodeResults_xsd.ArrayOfAnyType
Methods hashCode (returns int)
equals (returns boolean)
getSerializer (returns interface
org.apache.axis.encoding.Serializer)
getDeserializer (returns interface
org.apache.axis.encoding.Deserializer)
getTypeDesc (returns org.apache.axis.description.TypeDesc)
getAnyType (returns java.lang.Object)
getAnyType (returns [Ljava.lang.Object;)
setAnyType (returns void)
setAnyType (returns void)
getClass (returns java.lang.Class)
wait (returns void)
wait (returns void)
wait (returns void)
notify (returns void)
notifyAll (returns void)
toString (returns java.lang.String)
Breaking down the object
array
1 Albany, NY -
Possible to consume a webservice with no usable operations defined?
Hi all,
I'm .NET programmer, I wanted to consume an AXIS web service on .NET.
My problem is this:
The webservice I'm consuming appears to have no usable operations defined. (I checked this out using Visual Studio). To be certain that the webservice indeed has no usable operations exposed, i downloaded J2EE and Netbeans and tested the webservice. Again, Netbeans (like .NET) reported that there are no usable operations defined in the webservice.
Once more, I wrote sample web services with .net and java and both work perfectly on Visual Studio and Netbeans and there are completely interoparable.
My question is:
Is it possible to consume a webservice that has no usable operations defined? The webservice company is telling me that it is possible, but I can't figure it out how.
Its very urgent, so please help
Tnx in advanceI have never been able to get CFINVOKE to work without a
WSDL. It looks like CFINVOKE uses the WSDL to create the request:
without a WSDL it does not know to to communicate with it.
Alternatively you could just using CFHTTP to communicate manually,
or make a Java app to talk to it. -
Consuming Sharepoint webservice from Abap
Hi, I have a need to access a Sharepoint database from SAP. I am using the search.aspx webservice that sharepoint offers, or at least trying to. I set up an abap proxy from the WSDL that sharepoint supplied (which was not the best WSDL). From my ABAP I need to call the sharepoint service and I am having a little difficulty getting a result back.
Here is the ABAP code I have so far:
DATA: gr_query TYPE REF TO zgms_cycletimeco_query_service,
gs_input TYPE zgms_cycletimequery_soap_in,
gs_output TYPE zgms_cycletimequery_soap_out.
DATA: oref TYPE REF TO cx_root,
text TYPE string,
oref2 TYPE REF TO cx_root,
text2 TYPE string.
CREATE OBJECT gr_query.
CONCATENATE 'get_text( ).
ENDTRY.
I am trying to retrieve the record that contains HE2009-0624-084648 with no luck.
The error message I get says no results found.
Does anyone know what I am doing wrong? Do I need to specify the field in sharepoint that contains this data?
Thanks in advance,
RenéThanks for your reply. I actually tested today in SE80 on the proxy, and the request was formatted as:
<n0:Query xmlns:n0="urn:Microsoft.Search" xmlns:prx="urn:sap.com:proxy:PLD:/1SAI/TAS4ADD6B94366302A825F7:700:2007/10/04">
<n0:queryXml>This is a string 6</n0:queryXml>
</n0:Query>
When I execute it, the reponse is:
- <n0:QueryResponse xmlns:n0="urn:Microsoft.Search" xmlns:prx="urn:sap.com:proxy:PLD:/1SAI/TAS4ADD6B94366302A825F7:700:2007/10/04">
<n0:QueryResult><ResponsePacket xmlns="urn:Microsoft.Search.Response"><Response domain=""><Status>ERROR_BAD_REQUEST</Status><DebugErrorMessage>Data at the root level is invalid. Line 1, position 1.</DebugErrorMessage></Response></ResponsePacket></n0:QueryResult>
</n0:QueryResponse>
I don't really know what the format would be in between the queryXml tags. If anyone knows, please help!
Thanks. -
Consuming SharePoint WSRP with OracleAS Portal
Hi,
i hope, this is the right place for the topic.
We are trying to integrate our SharePoint Server into our Oracle Portal 10.1.4 by using the Microsoft SharePoint WSRP Producer.
The producer seems to be up and running. (The wsdl-file and all of the depending files were accessible.) But when registering an new Provider, it fails fetching the Services with the following error stack:
Beim Aufruf des WSRP Providers ist ein Fehler aufgetreten: Java stack trace from root exception:
java.rmi.ServerException: Server unavailable, please try later
at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:384)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:245)
at oracle.webdb.wsrp.WSRP_v1_ServiceDescription_PortType_Stub.getServiceDescription(WSRP_v1_ServiceDescription_PortType_Stub.java:63)
at oracle.webdb.wsrp.client.design.v1.OraWSRP_v1_ServiceDescription_PortType.getServiceDescription(Unknown Source)
. (WWC-43273)
The server is definitely up and running.
Btw. we can consume other WSRP-Portlets without problems with Oracle Portal Server and GlassFish (using Portlet Container Driver and WSRP).
Does anybody have experiences on consuming WSRP from the SharePoint Server (e.g. with the WebCenter Application) or does anybody have an idea what the problem might be?
Thanks in advancePlease help me. I am the same problem.
I don't registration my provider because i have this message error:
Unexpected error - ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1665
ORA-12535: TNS:operation timed out (WWC-35000)
please Help me.
Thanks. -
Problem consuming a webservice with Adobe Interactive Form
Hello
everyone
I make a Web Service based on a function in ABAP (RFC) when I try to create the data connection in Adobe form, an error is displayed. "there is no associated SOAP binding"
Can anyone tell me how can I modify the WSDL so that it can be read by Adobe
Best Regards
Leonardo VásquezYou need to use SOAMANAGER transaction , search for your Web Service and then download the WSDL from there.
Chintan -
Consume WebService with Assertion Ticket in CE 7.2
Hi masters
I am using netweaver ce 7.2 and the problem is that I just can consume webservices with User ID/Password (Basic), but I need to do that with something like Assertion Ticked (like RFC connections)
Does anybody could say me how to configure a WS connection with assertion ticked ?I solved by myself
-
Consuming WebService with 1-to-many relationship in one request, multi MBO?
Hi
I recently have started working on SUP. I was trying to create MBO from a webservice that provides me details of an Employee like name , age , ID and address. The employee can have many adress in this case. The webservice returns all the things in one request. I need to know how to create multiple MBO from this in one request. That is when I request to the webservice the name , age , ID to goto one table and addres should be populated in a separate table with ID as the realtionship parameter in both tables.
I have connected to the webservice and can see data in preview. I had on demand cache policy with default parameter as employee ID, so it populated CDB with as many number of rows as the addres exists for the same employee which was not the desired result.
Please let me know the most efficient way to do the same.
Thanks
PrekshaI am able to consume the webservice and make multiple MBO with single call.
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01283.0200/doc/html/fre1249336854524.html -
Consume a webservice developed in other than coldfusion in WS-Security mode
1. What are the prerequisites (any software installation, configuration) to be considered ?
Requirement : To consume a Webservice developed in other than coldfusion in WS-Secuirty mode .
Environment used : Windows 2003, IIS 6, Coldfusion 8, SQl server 2005
2. While trying to consume a public webservice through coldfusion , We received unable to read WSDL file and Unknown host exception error.Can you please advise. why we are receiving this error and solution ?Thanks Dan Bracuk, for your reply.
What I could understand from Sivakarthikeyan post is that
Point 1)
It is mentioned that they are going to consume external webservices for which he would like to know whether any software/configuration is required to implement WS-Security (In IIS or coldfusion administrator)?
Point 2)
It could be a correct URL that he is using, from his description (2nd step) he gets a error message as "Unable to read WSDL file". If it of incorrect URL then he would have received file not found or other error message.
Can you please or anyone clarify?
Thanks,
Satheesh -
ASMX webservice with Complex type argument consuming in Biztalk
There is a requirement to consume asmx webservice in biztalk orch.The asmx webservice ,webmethod is having complex type as a argument
For Ex:CalculateFDR(Invoice as invoice) Here Invoice is a class.now consumed an asmx webservice using WCF consume wizard in BizTalk.
In orchestration , when I create the Requestmessage and bind to messagetype with MyFin.CalculateFDRSoapIn.
Now In expression shape when I want pass invoice values as argument to Request message i am getting like below
Msg_ServiceRequest.Parameters. instaed
Msg_ServiceRequest.Invoice.InvoiceNo etc.
Even When I check the multi-partmessage type i found that CalculateFDRSoapIn-Parameters and description of multi-part message type is <wsdl:message name="WriteDBEntrySoapIn"/> messagepart description is <wsdl:part name="parameters"/>
Could you please let me know how to pass Invoice values as a argument for this webservice in Orchestration
Note: We are palnning to use wcf-basichttp adapter.due to this not using webreference option
Regards BizTalkWorshipWhen you consume WCF/Web service using WCF/Web service wizard, it creates multi-part message type representing the contract’s of the parameters exchanged. This multi-part message will have
message part names as “parameters”. This parameter can be of primitive .NET Types type like System.String, System.Int32 etc or it could be of a schema type.
If multipart message’s message part type of Primitive .NET Types, then you can construct the message as you say something like..
Msg_ServiceRequest.InvoiceNo
Here if InvoiceNo could be of any primitive .NET Types.
If it’s of any schema type then you got to construct the schema first either using map (Transform) or in message-assignment. In your case it seems to be the multipart message’s message part
type is that of a schema. So you have to construct the schema using either map (Transform) or in message-assignment.
Regards,
M.R.Ashwin Prabhu
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
Consuming a Webservice is extremly slow
Hi
I would like to use a Webservice to communicate with a
server. For test purposes I wrote a small java webservice which
adds to numbers using the following 2 classes.
== Class Calculator ==
package de.theserverside.webservice.service;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;
@WebService
@SOAPBinding(style=Style.RPC)
public class Calculator
public long addValues(int val1, int val2) {
return val1 + val2;
== Class CalculatorServer ==
package de.theserverside.webservice.service;
import javax.xml.ws.Endpoint;
import de.theserverside.webservice.service.Calculator;
public class CalculatorServer {
public static void main (String args[]) {
Calculator server = new Calculator();
Endpoint endpoint =Endpoint.publish("
http://<IP Adresse>/calculator?wsdl",
server);
In Coldfusion I tested both methods to consume this
Webservice:
<cfinvoke webservice="
http://<IP Adresse>/calculator?wsdl"
method="addValues" returnvariable="aString">
<cfinvokeargument name="arg0" value="1"/>
<cfinvokeargument name="arg1" value="6"/>
</cfinvoke>
<cfoutput>#aString#</cfoutput>
== mit cfskript ==
<cfscript>
ws = createObject("webservice","
http://<IP
Adresse>/calculator?wsdl");
xlatstring = ws.addValues(2,9);
</cfscript>
<cfoutput>#xlatstring#</cfoutput>
The Webservice works with both methods but it takes between 5
and 6 Minutes to get a result.
I also wrote a java client to test the webservice which
returned the result within 1 second.
Whats the problem here with CF?
I am using CF 8I found a third way to call a webservice using chttp. But now
I have the problem that I cant pass paramaters to my method.
I wrote a simple hello world method without any paramater and
it worked within 1 sec.
When I try to use the addValues method I get this Error:
ns2:Serverjava.lang.IllegalArgumentException
here is the CF Code
<cfsavecontent variable="soap">
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="
http://service.webservice.theserverside.de/">
<soapenv:Header/>
<soapenv:Body>
<ser:addValues>
<arg0>6</arg0>
<arg1>34</arg1>
</ser:addValues>
</soapenv:Body>
</soapenv:Envelope>
</cfsavecontent>
<cfhttp url="
http://<IP>/calculator?wsdl"
method="post">
<cfhttpparam type="header" name="content-type"
value="text/xml">
<cfhttpparam type="header" name="SOAPAction" value="">
<cfhttpparam type="header" name="content-length"
value="#len(soap)#">
<cfhttpparam type="header" name="charset"
value="utf-8">
<cfhttpparam type="xml" name="message"
value="#trim(soap)#">
</cfhttp>
<!--- Dump out a nice representation of the SOAP response
--->
<cfoutput>#cfhttp.FileContent#</cfoutput>
<cfdump var="#xmlParse(cfhttp.FileContent)#"> -
Web Services with ColdFusion and PHP mixed
Hi,
We need to used web services provided by remote server. The
problem is the
remote server is on PHP and our server is on ColdFusion. Is
there a way to
use the web services on PHP server with our ColdFusion
server?
I understand ColdFusion automatically generate the WSDL by
adding ?wsdl
after the CFC, but I can't do the same thing because the
remote server is
not on ColdFusion. They have given us the wsdl web address,
but it seems
using the wsdl address directly without CFC is not working.
Is that right?
Please let me know.
YCFrom the coldfusion side of things, it all seems okay what
you are doing. It
is an issue with the php/wsdl side of things. I can access
the wsdl ok, but
got the same error as PaulH just then when I tried to use web
service in
cf..
"YC" <[email protected]> wrote in message
news:[email protected]...
> OK, I learned a good thing. I tired the Dreamweaver +
icon with a
> ColdFusion CFC file and it works fine. Now I learned I
don't have to code
> the <cfinvoke> tag, but just drag and drop. But
when I tried the WSDL
file:
>
http://cyfernet.ces.ncsu.edu/ws/resources.wsdl,
and "ColdFusion MX" as the
> proxy generator, I had an error. Do I need any other
option to choose
from?
> It seems "Edit Proxy Generator list" doesn't provide a
sufficient answer.
>
> I know the URL of the WSDL file is correct because I
used it to create a
web
> service in PHP locally on my laptop, and it works. From
the previous
> answers of you and PaulH, it seems if the WSDL works
with PHP, it should
> also work with any other language, right?
>
> Have you tried yourself? Did it work?
>
> YC
>
> "Eric" <[email protected]> wrote in message
> news:[email protected]...
> >
> >
> > An easy way to do this is to use the dreaweaver
'components' palette.
> > Select
> > 'web services' from the drop down list and then
click the '+' icon to
> > create
> > the call to the web service. (this uses the
cfinvoke tag)
> >
> >
> > "YC" <[email protected]> wrote in message
> > news:[email protected]...
> >> I feel very sorry to keep asking this
apparently very basic question,
but
> >> please be patient with me.
> >>
> >> Yes, it is right that I just need to consume
the pre-existing web
> >> service.
> >> This is the WSDL page:
http://cyfernet.ces.ncsu.edu/ws/resources.wsdl
and
> >> this is the web service page on the server
using it:
> >>
http://cyfernet.ces.ncsu.edu/ws/getresources-client.php,
provided as an
> >> example.
> >>
> >> So in order to have the page run in ColdFusion,
at least the following
> >> tag
> >> below should come up without an error?
> >> <cfset
> >>
> >
ws=createObject("webservice","
http://cyfernet.ces.ncsu.edu/ws/getresources-c
> > lient.php")>
> >>
> >> Sorry, but I still get an error message.
> >> I need to provide "getResourcesByCatid" as the
method and "catid" as
the
> >> parameter, but it should work only if the
previous tag works without an
> >> error, right?
> >>
> >> YC
> >>
> >>
> >> "Eric" <[email protected]> wrote in
message
> >> news:[email protected]...
> >> >>>We need to used web services
provided by remote server.
> >> >
> >> > Right, so the web service already exists -
you just want to consume
it?
> >> >
> >> >>Is there a
> >> >> >> way to use the web services
on PHP server with our ColdFusion
> > server?
> >> >
> >> > Yes - thats the whole point of web
services, you can create them in
one
> >> > language/platform and consume them in
another.
> >> >
> >> >> Whey you say "create a web service,"
do you mean I need to create a
> >> >> <cfcomponent> tag in CFC format?
Creating a CFC is not a problem,
but
> >> >> how
> >> >> can I place it on the remote server
because it is running with PHP,
> >> >> not
> >> > with
> >> >> ColdFusion?
> >> >
> >> > Sorry if I am not understanding the
question clearly, but it seems to
> >> > me
> >> > that you want to make use of an existing
php based web service. Why
do
> > you
> >> > you need to place a CFC on the php server?
You just need to execute
the
> >> > web
> >> > service from the coldfusion server using
cfml. As Paulh says:
> >> >
> >> > <cfset
ws=createObject("webservice","url to the php based web service
> >> > here")>
> >> >
> >> > The variable 'ws' being your hook into the
php web service from
within
> >> > your
> >> > cfml code.
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > "YC" <[email protected]> wrote in
message
> >> > news:[email protected]...
> >> >> Eric,
> >> >> Whey you say "create a web service,"
do you mean I need to create a
> >> >> <cfcomponent> tag in CFC format?
Creating a CFC is not a problem,
but
> >> >> how
> >> >> can I place it on the remote server
because it is running with PHP,
> >> >> not
> >> > with
> >> >> ColdFusion?
> >> >>
> >> >> YC
> >> >>
> >> >> "Eric" <[email protected]>
wrote in message
> >> >>
news:[email protected]...
> >> >> > >We need to used web services
provided by remote server. The
> >> >> > >problem
> >> >> > >is
> >> >> > >the
> >> >> > remote server is on PHP and our
server is on ColdFusion.
> >> >> >
> >> >> > Thats one of the main nenefits of
web services - this does not
> > matter.
> >> >> >
> >> >> >>> I understand ColdFusion
automatically generate the WSDL by
adding
> >> > ?wsdl
> >> >> >> after the CFC, but I can't do
the same thing because the remote
> > server
> >> > is
> >> >> >> not on ColdFusion.
> >> >> >
> >> >> > Sounds like you want to consume a
web service, not create one. You
> > can
> >> >> > create the call in Dreamweaver,
just look up help on calling a web
> >> >> > service. Also see Adobe site
using search for 'using web services
in
> >> >> > coldfusion'
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > "YC" <[email protected]>
wrote in message
> >> >> >
news:[email protected]...
> >> >> >> Hi,
> >> >> >> We need to used web services
provided by remote server. The
> >> >> >> problem
> >> >> >> is
> >> >> >> the remote server is on PHP
and our server is on ColdFusion. Is
> > there
> >> > a
> >> >> >> way to use the web services
on PHP server with our ColdFusion
> > server?
> >> >> >>
> >> >> >> I understand ColdFusion
automatically generate the WSDL by adding
> >> >> >> ?wsdl
> >> >> >> after the CFC, but I can't do
the same thing because the remote
> > server
> >> > is
> >> >> >> not on ColdFusion. They have
given us the wsdl web address, but
it
> >> > seems
> >> >> >> using the wsdl address
directly without CFC is not working. Is
> >> >> >> that
> >> >> >> right?
> >> >> >>
> >> >> >> Please let me know.
> >> >> >>
> >> >> >> YC
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
> -
Stub generated in Jdev9i for webservice with 'Vector' return type
Hi,
In the OAF page that I am developing, I am trying to consume a web service generated in SAP PI using Jdeveloper. My Jdeveloper version is 9.0.3.5(I need to use this version since I need to deploy the OAF page in EBS11i). The stub generated based on the WSDL is given below.
import oracle.soap.transport.http.OracleSOAPHTTPConnection;
import org.apache.soap.encoding.soapenc.BeanSerializer;
import org.apache.soap.encoding.SOAPMappingRegistry;
import org.apache.soap.util.xml.QName;
import java.util.Vector;
import org.w3c.dom.Element;
import java.net.URL;
import org.apache.soap.Body;
import org.apache.soap.Envelope;
import org.apache.soap.messaging.Message;
* Generated by the Oracle9i JDeveloper Web Services Stub/Skeleton Generator.
* Date Created: Tue Jan 25 16:12:55 IST 2011
* WSDL URL: file:/C://Working/XXXXXXX/RegConsComplaint_OB.wsdl
public class RegConsComplaint_OBServiceStub
public RegConsComplaint_OBServiceStub()
m_httpConnection = new OracleSOAPHTTPConnection();
public static void main(String[] args)
try
RegConsComplaint_OBServiceStub stub = new RegConsComplaint_OBServiceStub();
// Add your own code here.
catch(Exception ex)
ex.printStackTrace();
public String endpoint = "http://XXXXXX:8000/sap/xi/...../RegConsComplaint_OB";
private OracleSOAPHTTPConnection m_httpConnection = null;
private SOAPMappingRegistry m_smr = null;
public Vector RegConsComplaint_OB(Element requestElem) throws Exception
URL endpointURL = new URL(endpoint);
Envelope requestEnv = new Envelope();
Body requestBody = new Body();
Vector requestBodyEntries = new Vector();
requestBodyEntries.addElement(requestElem);
requestBody.setBodyEntries(requestBodyEntries);
requestEnv.setBody(requestBody);
Message msg = new Message();
msg.setSOAPTransport(m_httpConnection);
msg.send(endpointURL, "http://sap.com/xi/WebService/soap1.1", requestEnv);
Envelope responseEnv = msg.receiveEnvelope();
Body responseBody = responseEnv.getBody();
return responseBody.getBodyEntries();
}I am wondering whether I will be able to use this stub generated by Jdeveloper since the input type is 'Element' and return type is 'Vector'; while in the Jdeveloper documentation the supported "primitive XML Schema types and arrays of primitive XML Schema types as parameters and return values for web services" do not include either of the two.
Regards,
SujoyHi Sujoy
I have been having big problems consuming microsoft sharepoint webservices using jDeveloper 9i.
Problems with jdk version compatability with jDev and NTLM authentication (Sharepoint).
so switching to db connection using utl_http.
Can you pls send me the code set for reference at [email protected]
thanks.
Regards
Sachin -
Consuming a webservice in ABAP ECC 6.0 without using XI/ PI
Hi Experts,
I wanted to consume an external webservice without using XI / PI.After doing my homework and search on sdn I came to know that we can consume webservices in ABAP using proxies using SE80(Enterprise Services).
I am trying to create a client proxy with the URL of webservice.It asks me the option to choose between URL or HTTP.
I am selecting URL and in the second screen it asks about the package details and after that it finishes.Later I get an error message stating "NO VENDOR SPECIFIED".Its not allowing me to create a proxy.
So, here are my questions.
Does anyone faced the same kind of problem?
Can we really consume a webservice without using XI / PI or any other middleware?
Is it possible to consume the webservice only with URL or WSDL file ?
Please let me know the exact process.
Thanks in Advance.
Shanker Pandey.Hi Martin,
Please check these following links. Though you have reported already, these may help
Proxy Object generation error using Wizard for Web Service Consumption
Also, please have a look @ /people/thomas.jung/blog/2006/03/13/develop-a-web-service-that-sends-an-email--in-abap-netweaver-04s
Hope this helps,
Karthik
Maybe you are looking for
-
when i try to open itunes on my macbook, it says it needs quicktime 7.5.5 to run. how do i update quicktime so i can run itunes?
-
How to pass parameter into extract function (for XMLTYPE)
I have a table PROBLEMXML with XMLTYPE field xml_column. In this column there are several deffinitions for the problem. There is no max amount of deffinitions and it can be no definition at all. I need to return all definitions for every problem as a
-
Whenever I redeploy my servlet, Weblogic states the redeployment was successful, but when I run the app, the code changes have not propagated. I know this is true, because I invoke a JSP with a "version" number, that I increment on each change so I k
-
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 pac
-
What balance value in sales order and iwant to know table field name in
where the balance value come in sales order i want make sales order report in which i want to add this filed how we add it and tell me table field name of balance vlue and how we give it in FS please help me in this my report are left without it ple