Webservice Proxy Object
Hi!
I want to use an extern Webservice, provided by a webserver in the intranet. First of all: i tried this in to different systems. One of them did it. The other did not.
I create a proxy for the webservice and create a lshort abap programm like this:
Line: -
REPORT zcdi_ws_historie.
DATA sys_exception TYPE REF TO cx_ai_system_fault.
DATA client_proxy TYPE REF TO ZWS4_CO_WS_ZWMHISTORIE_SOAP.
DATA request TYPE zws4_ws_zwmhistorie_soap_in.
DATA response TYPE zws4_ws_zwmhistorie_soap_out.
request-I_FACTOR1 = 2.
request-i_FACTOR2 = 3.
TRY.
CREATE OBJECT client_proxy.
CALL METHOD client_proxy->WS_ZWMHISTORIE
EXPORTING
input = request
IMPORTING
output = response.
WRITE:/ response-WS_ZWMHISTORIE_RESULT.
ENDTRY.
Line: -
By the way. The response is 6. (3*2)
So, when i build this on the first system, it works. On the second i get a short dump with:
"Server did not recognize the value of HTTP Header SOAPAction."
Can anybody help?
Thanks.
Regards Chris
Hi!
I think the soapAction is defined with "CALL METHOD client_proxy->WS_ZWMHISTORIE".
I use the same code in both systems.
Regards
Chris
Similar Messages
-
Error in Consuming webservice proxy in SAP
Hi,
I have a webservice which I am not able to consume in SAP. I get an error 'Cannot generate Proxy (object <attribute name="arrayType"> missing in WSDL, see long text').
When i tried to search in SDN, I found a post which says that SAP doesnt support soapenc:Array types and it can be converted to corresponding Sequence. I went through the help link
http://help.sap.com/saphelp_nw04/helpdata/en/43/ce993b45cb0a85e10000000a1553f6/frameset.htm
which has a link which shows an example.
Accordingly, I have changed mine from:
- <schema targetNamespace="https://tserver.perfectcompliance.com/4DSOAP/LLX_Guardian" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
- <complexType name="ArrayOfstring" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <complexContent>
- <restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]" />
</restriction>
</complexContent>
</complexType>
</schema>
To:
- <schema targetNamespace="https://tserver.perfectcompliance.com/4DSOAP/LLX_Guardian" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
- <complexType name="ArrayOfstring">
- <sequence>
<element name="item" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
</sequence>
</complexType>
</schema>
After doing the above changes, I am able to consume webservice and create a proxy but it's not working. When i execute any method which is using the Arrayofstring, it gives me an error:
Complex Types cannot be parsed.
Is my above change in XML wrong. Do I need to do any other changes.
Regards,
NikhilAnyone has any idea on how to solve this issue?
-
How to pass username/password through WebService proxy client to E-BS.
Hi
We are using ADF Webservice proxy client to integrate E-Business suite with ADF. It asks for username/password to access details from E-BS. In the generated webservice XSD file, a method is available with 2 parameters.
1) SOAP header( Contains Username, responsibility and 2 more fields)
2) Class object(Nested Object)
However i didn't find "*Password*" field anywhere in it. Then how can I pass "*Password*" along with username to invoke this method?
When i checked SOAP, the password is defined like this
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXX</wsse:Password>a
Thanks
Rajahi Dario
Thank you for your post. It is really helpful. Now I got stuck with a doubt, in this piece of code
final Binding binding = ((BindingProvider) servicePort).getBinding();
List<Handler> handlerList = binding.getHandlerChain();
if (handlerList == null)
handlerList = new ArrayList<Handler>();
They didn't mention properly about "*servicePort*". What object is this?
I checked in Oracle document, even in that I was not clear with that piece of code.
public class HandlerWS{
@Resource WebServiceContext ctx;
@WebMethod()
public String getProperty(String propertyName) {
return (String) ctx.getMessageContext().get(propertyName);
public class Main {
public static void main(String[] args) {
HandlerWS test;
try {
test = new HandlerWS(new URL(args[0] + "?WSDL"), new
QName("http://example.org", "HandlerWS") );
} catch (MalformedURLException murl) { throw new RuntimeException(murl); }
HandlerWSPortType port = test.*getHandlerWSPortTypePort*();
What is this HandlerWSPortType object???. Can you give me little more explanation about it?
Thanks -
Hi,
I want to use the google web servcices(http://api.google.com/GoogleSearch.wsdl) by creating a proxy object in SE80. But, the system returns "Proxy generation terminated: Message must have exactly one part" during the proxy creation.
Any configration is required prior the proxy create??
Regards,
Kit/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
-
Public Part : Deployable Webservice Proxy DC
Hi All,
I have a deployable Webservice Proxy DC, which is used to create webservice proxy. I am using those webservice proxy in my Portal application. May I know what needs to be defined in public part of webservice proxy dc, so that I can use it as used dc in portal DC?
Best Regards,
PriyankaHi Anand,
Thanks for your response. I have already checked that object for null - it is not. The problem is I dont have this SECQANDAImpl class that implements the SECQANDA interface in my DC. This implementation class gets generated when I deploy the deployable proxy object. Though I should be able to cast to the interface, it is throwing this error. Any other ideas?
Giri. -
Error while activating ABAP proxy object
Hello,
I can see all the interfaces of PI7.0 in my ECC6.0 system.
I am able to create abap proxy object of a interface.
But when I try to activate that I am getting error as
"RFC system error for destination GTADIR_SERVER".
Pl can you suggest. appreciate quick help in this.
thanks in advance,
SharadaHi,
For more details take a look at note: [1063482 - Creating Dictionary objects - RFC error GTADIR_SERVER|https://service.sap.com/sap/support/notes/1063482]
It is written that: Message SGSUB 104 is not an error message, but is merely irrelevant information for customers. You can continue to create objects nevertheless.
To get rid of this annoying error you have to implement the corresponding support package.
Regards,
Jakub -
Issue:
On a vanilla installation, the sandboxed code service (e.g. SPUCHostService.exe) is started; however, SPUCWorkerProcessProxy.exe and subsequently SPUCWorkerProcess.exe fails to start.
Resolution/Workarounds attempted:
Attempted 2 different Load balancing settings – local and remote (i.e. affinity)
Ensured local computer policy on server for ‘RPC Endpoint Mapper Client Authentication’ and ‘Restrictions for Unauthenticated RPC clients’ is disabled.
Ensured following key in registry is set properly - HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\RPC
Attempted to bypass SharePoint’s check for certificate revocations at crl.microsoft.com
Ensured the service account is added to the respective groups (e.g. Performance Log Users, Performance Monitor Users, IIS_IUSRS, WSS_ADMIN_WPG, WSS_WPG)
Increased limit of ‘AbnormalProcessTerminationCount’ of SPUserCodeService via Powershell
We have tried all possible workarounds from the following MSDN reference:
http://blogs.msdn.com/b/sharepointdev/archive/2011/02/08/error-the-sandboxed-code-execution-request-was-refused-because-the-sandboxed-code-host-service-was-too-busy-to-handle-the-request.aspx
ULS:
02/21/2014 05:24:50.64 SPUCHostService.exe (0x0230) 0x0F74 SharePoint Foundation Sandboxed Code Service fe8a
Medium - - Unable to activate worker process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000
02/21/2014 05:24:50.64 SPUCHostService.exe (0x0230) 0x0F74 SharePoint Foundation Sandboxed Code Service fe8c
Medium - - Error activating the worker process manager instance within the worker process. - Inner Exception: System.InvalidOperationException: Unable to activate worker
process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000 at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.CreateWorkerProcessProxies()
02/21/2014 05:24:50.64 SPUCHostService.exe (0x0230) 0x0F74 SharePoint Foundation Sandboxed Code Service ei0t
Medium - Process creation/initialization threw an exception. Stopping this process. "ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000"
02/21/2014 05:24:50.65 SPUCHostService.exe (0x0230) 0x0F74 SharePoint Foundation Sandboxed Code Service
fe87 Medium - - Error activating the worker process manager instance within
the worker process. - Starting worker process threw - Inner Exception: System.InvalidOperationException: Unable to activate worker process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000 at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.CreateWorkerProcessProxies()
Any other insights on how I can troubleshoot the issue described?
Thanks in advance!Hi ,
For resolving your issue , you can do as the followings:
1. Logged into the Web Server with the Timer Service Account.
2. Ran the powershell command to check the SID of the account running the spucworkerprocessproxy.exe:
$(Get-SPManagedAccount -Identity "THE SERVICE ACCOUNT").Sid.Value
3. Checked the registry :
HKEY_USERS\[SID OF THE SERVICE ACCOUNT]\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing\State
4. Changed the value 0x00023c00 to 0x00023e00
In addition, here are some similar posts for you to take a look at:
http://social.technet.microsoft.com/Forums/en-US/aae497df-5f0d-4f86-a724-c7b805ccd07f/sharepoint-sandboxed-code-service-troubles?forum=sharepointgeneralprevious
http://blogs.technet.com/b/operationsguy/archive/2011/01/17/sharepoint-2010-sandboxed-code-solutions-and-web-proxy.aspx
http://social.msdn.microsoft.com/Forums/en-US/c21e2c3a-a259-4d5f-8071-eff52b7bddc3/issue-sandbox-solution-too-busy-to-handle-the-request?forum=sharepointgeneralprevious
I hope this helps.
Thanks,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support -
Error while creating the proxy object to connect to a third party tool.
Hi,
I tried creating a proxy object with the wsdl file. I even created a HTTP connection to the third party tool. but when I try to execute the whole proxy object, I am getting the below error. Can anyone help me on this?
"Proxy-Generierung: Fehler aufgetreten"
"Incorrect value: Entity "<<document>>"(92 /3788 ). end tag 'ul' does not match begin tag 'p'"
Thanks & Regards,
Veerabhadra Rao A.do a check on the wsdl file and how you are passing values in the proxy. The tags for XML are not correct. Open the WSDL in IE and see there must be an error. Or probably when passing the actual values to the XML generated each element is not closed properly. Error says tags dont match.
Edited by: Kshamatha Eda on Mar 5, 2010 10:54 AM -
Error in activating proxy object
hi
when i m trying to activate my proxy objects in CLIENT PROXY scenario in the ECC , the following error message is being prompted :
Erro in object editing :
"SAP object CLAS CO_PRXY_MI cannot be assigned to
package ZXIPACKAGE:
A package has been created in ECC by the name of zxipackage .
Pl help to rectify the problem
rgds
shaziaHi,
You should assign it to Z-package ie.e Customized one not SAP package
Use a prefix of Z when doing the generation and you can use your own development class. you are trying to create objects in the SAP namespace.
The Proxy object should have to be in non SAP package only, if its customized.
As while activating the ABAP proxy internally Class and verious methods as well as some data typs get creaetd which are to be assigned it Z-package.
refer below link
Tips for Generating ABAP Proxies
http://help.sap.com/saphelp_nw04s/helpdata/en/2b/f49b21674e8c44940bb3beafd83d5c/frameset.htm
thanks
Swarup -
Error when creating a Proxy Object from WSDL
Hi,
when creating a proxy object in abap based on the [WSDL|http://download.mapandguide.com/EN/dev/xserver/XLocate-1.6.0.3.wsdl] i get the error 'Incorrect value: Unknown Type Referencens0:ArrayOfString'.
1- Is there a conflict with the type 'String' that's also a type in ABAP
<complexType name="ArrayOfString">
<sequence>
<element name="String" type="xsd:string" minOccurs="0" maxOccurs="unbounded" nillable="true" />
</sequence>
</complexType>
2- Is it a name space problem?
xmlns:ns0="http://types.xlocate.xserver.ptvag.com"
type="ns0:ArrayOfString"
3- Something else?
Please Help!
Thank
FouadHi Isaias,
we are working with this versions:
SAP_BASIS 700 0015 SAPKB70015 SAP Basiskomponente
SAP_AP 700 0013 SAPKNA7013 SAP Application Platform
We are not working with developer studio, only with the regular tools of the abap development workbench Transaction SE80.
Thanks,
Fouad -
Generating Webservices proxy in JDeveloper 10.1.3.4.0.4270
Hi,
I have been using Jdeveloper 10.1.3.0.4 for creating .net webservice proxy for over a year now. Recently i upgraded the Jdeveloper IDE to 10.1.3.4.0.4270 and since then i m not able to connect to the webservice. Here are the steps i m taking to create the proxy which i did in the older version as well.
New --> Business Tier --> Web Service --> Web Service Proxy
WSDL Document URL -- https://ServerName/Webservice.asmx?wsdl
I am using all the default settings from Steps 2 thru 4
Step 5 -- Adding a package name, clearing the root package for generated types, checking all the other options on the screen.
Finally click Finish.
All of this still works if i were make the proxy in the previous Jdeveloper version. However with this new version i am getting the following error.
javax.xml.rpc.ServiceException: java.lang.ClassNotFoundException: bmtez.spidr.SPIDRInterfaceLocator
java.io.FileNotFoundException: http://utmswst3vmnt.utmdacc.org/bmtweb/servlet/bmtez.server.BMTLogger
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at bmtez.client.BMTLog.log(BMTMainSearchPage.java:1958)
at bmtez.client.SerologyTab.actionPerformed(SerologyTab.java:2749)
at javax.swing.JComboBox.fireActionEvent(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at bmtez.client.BMTComboBox.setSelectedItem(BMTGuiControls.java:871)
at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
at bmtez.client.SerologyTab.populateDonorSerologyScreen(SerologyTab.java:1299)
at bmtez.client.SerologyTab.populateScreenData(SerologyTab.java:949)
at bmtez.client.SerologyTab.applyBusinessRulesToScreen(SerologyTab.java:440)
at bmtez.client.BMTMainTab.stateChanged(BMTMainTab.java:1753)
at javax.swing.JTabbedPane.fireStateChanged(Unknown Source)
at javax.swing.JTabbedPane$ModelListener.stateChanged(Unknown Source)
at javax.swing.DefaultSingleSelectionModel.fireStateChanged(Unknown Source)
at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(Unknown Source)
at javax.swing.JTabbedPane.setSelectedIndexImpl(Unknown Source)
at javax.swing.JTabbedPane.setSelectedIndex(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at bmtez.client.CustomEventQueue.dispatchEvent(BMTMainTab.java:2394)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I m not able to understand why its looking for a class SPIDRInterfaceLocator which was not built by the proxy?. Or does it have some other underlying message that i m not able to see. Please help.
Thanks,
-Seema Abdi.Can you compare the Web Browser and Proxy settings in your jdev installation.(Tools->Preferences->Web Browser and proxy)
I case that does not solve your issue:
Where is this service hosted? Is it on your localbox or you are accessing it over the net.
Can you try migrating the project created in the earlier Jdev installation and see if you can run that successfully.
-Vishal -
Error While Generating the Proxy Objects
Hi All,
While Generating the Proxy Obects in SPROXY at SAP R/3 side,
Iam getting this Error
http://img169.imageshack.us/img169/5752/proxylm0.jpg
Can any one Occured this type of Error
Regards
SumanHi PT,
Now the Strange Issue came,
While generating the proxy objects i got that above mentioned error
After that i have run the 3 report programs according to the Ramesh Suggession
Now if i goto SPROXY means it is saying that No Conection to Integration Builder .
I have checked the RFC Destination created in SM59 of SAP R/3 of Type H.It is fine
What more i have to check
First of all when ever i open the Sropxy, every time User & pwd is requesting
Can you please through a light where to check
Regards
Suman -
How to create a proxy object for MOSS integration via WebDynpro For ABAP
Hello all,
I have a question about the creation of an ABAP proxy class in SE80.
When i follow this link:
[https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/6066fbe8-edc4-2910-9584-a9601649747d&overridelayout=true]
i see on page 7 that there is: a tab under create called Enterprise Service/ Web Service with under this tab a tab called proxy object.
When i do this in my SE80 i only see Enterprise Service and not proxy object.
Screenshot
[http://picasaweb.google.be/panneels.robin/SAPScreens#5377623235095894546]
Is there a extra configuration or add-on needed to do this action? Or is there a work-arround for this?
Because we need this for abap web dynpro for communication with MOSS.
Thanks in advance for all your help.
With kind regards,
Robin PanneelsHi James,
If you like to use SAP web dispatcher as a solution for load balancing portal application, you no need to create system object under systems..
You have to install web dispatcher as separate instance where you need to configure portal apps into it..
Configure web dispatcher like to hit the admin port, use http://<webdisp-server>:<adminport>/sap/admin
For normal portal access, use http://<friendly URL>/irj/portal
The good news is that the webdispatcher knows that the portal supports SSL
Another advantage of this config, is the webdisp, will just replace the apache redirect server. Users will access mycompany.com, without any port number, since we are redirecting 80 to the backend j2ee. Also, https should work like in the normal world.
Profile will be like below...
SAPSYSTEMNAME = WEB
SAPSYSTEM = 00
INSTANCE_NAME = W00
DIR_CT_RUN = $(DIR_EXE_ROOT)/run
DIR_EXECUTABLE = $(DIR_CT_RUN)
Accesssability of Message Server
Message Server Parameters ##########
NOTE: The "ms/http_port" must match the profile on the Central Instance
rdisp/mshost = <FQDN of portal CI Host>
ms/http_port = <Ms port of portal>
SAP Web Dispatcher Ports
#icm/server_port_0 = PROT=HTTP,PORT=81$$
icm/server_port_0 = PROT=HTTP,PORT=80, TIMEOUT=3600, EXTBIND=1 (some OS will not allow to bind ports <1024)
Admin port details
icm/server_port_1 = PROT=HTTP,PORT=3200
#, EXTBIND=1
icm/HTTP/admin_0 =
PREFIX=/sap/admin,DOCROOT=./admin,PORT=3200,AUTHFILE=/usr/sap/WEB/SYS/global/security/data/icmauth.txt
SSL
icm/HTTP/redirect_0 = PREFIX=/ , TO=http://<friendly URL name>/irj/portal
WebAS Message Server Parameters
rdisp/TRACE = 1
icm/trace_secured_data = 1
Regards
Suresh -
Proxy Object for external WSDL--Not using XI
Dear Collegues,
URL OF web service: <u>http://www.nanonull.com/TimeService/TimeService.asmx</u>
I am trying to create proxy object from <b>se80->enterprise services->create proxy
then is selecting url/http and giving the above address(url).</b>
i get this error.
<b>Message no. SPRX090
If you want to generate a proxy for an external WSDL document (for example, by specifying a URL), check that the proxy settings of the system are correct (transaction sicf - Client - Proxy Settings).[/b
it says something should be correct in SICF,say any one provide some pointers for this.I am not using XI.
Regards
chandraHi,
I know this issue is logged some time back.
Is this Issue fixed for you?
Can you please let us know the SICF Config settings that you used for fixing this Issue?
Thanks and Regards,
Nagendra -
ABAP proxy object and JAVA proxy objects
can anyone explain whether ABAP proxy object and JAVA proxy objects can communicate with each others?
if yes then how???JCO connectors would be able to do the trick here i guess
regards
krishna
Maybe you are looking for
-
Installation problem under AIX 5.3 with Oracle 10g
Hello, I start an installation in AIX 5.3 machine with oracle 10. I install oracle 10.0 and pathes for oracle 10.2.0.2.0. I also install and all the interim patches through MOpatch utility. I also install the latest R3trans and R3load for unicode ins
-
My iPhone 5 wont allow me to slide across so i can't gain access
my iPhone 5 wont slide across so i can't gain access. can you help?
-
Hard drive crashed after mac security update
My hard drive crashed right after downloading and installing the mac security and safari updates last night? Other than doing a complete re-install from my installation dvd and back-up, is there another way to fix this problem?
-
3G crashing every week. I lose the external mic
Thanks for taking time to read this My first 3G iphone was great, it worked wonderfully till 18 months, then the home button wore out. I have received 2 replacements since that time and both of them of them lose the external mic for the telephone. It
-
Videos as supported files in lightroom 5
I just upgraded to LR 5 mainly because it su[pports videos in slideshows; however in the import dialog box, videos do not show as "supported files". These are AVI files from my camera.