File to Web Service - No back system in hoplist
Hi guys
I've implemented a File to Web service Scenario with XI. The file is picked up from the server.
The message monitoring in the Runtime Workbench shows the following error:
"XI-Systemfehler erhalten. ErrorCode: NO_BACK_SYSTEM_IN_HOPLIST ErrorText: ErrorStack: Legacy system to which acknowledgment message is to be sent is missing in hoplist (with wasread=false)"
Has anybody a clue?
Hi Gokhan,
please go thru the links below and see if u have followed the steps mentioned in it while defining the web service..if it still doesnt help you, pleease do let me know.
http://help.sap.com/saphelp_erp2004/helpdata/en/31/daa0404dd52b54e10000000a1550b0/content.htm
/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
/people/david.burdett/blog/2005/01/28/why-using-web-services-for-b2b-is-hard-to-do
/people/dj.adams/blog/2004/06/24/forget-soap--build-real-web-services-with-the-icf
/people/renald.wittwer/blog/2005/01/05/develop-a-web-service-that-sends-an-email
I hope the info provided will help you to atleast some extent solve your problem.
Regards,
abhy
Similar Messages
-
Down-/Upload files via Web Services using a NON-SAP system!?
Hello,
is it possible to down-/upload files via web services using a NON-SAP system!?
Regards,
JensHi Jens,
I am not sure about your requirement here. What i could understand is that you want to check whether service could handle file processing?
1) Uploading file - You can build a Webservice which has import/export parameters as the file structures and implement the proxy class in such a way that the passed data is written to application server.
2) Downloading file - Same as uploading file, but the proxy class would have the code to extract data from the application server and pass them as output parameter.
Functionality of Non SAP system: The system which calls these services should be able to convert the output of proxy data into file in case of downloading the file and it should be able to convert the file data into export parameters in case of uploading file.
Hope this helps.
Regards,
Prasanna -
How to download a file via web service in Windows Phone 8.1?
My project just got 2 part.
1.Pivot app
2.Webclient server (provide data for pivot app the view the data)
My concert that how do i do a download button to download a file via web services in to isolated storage.
urgent!something like this:
public async System.Threading.Tasks.Task DownloadFile()
using (var client = new Windows.Web.Http.HttpClient())
var stream = await client.GetInputStreamAsync(new System.Uri("http://urltomyfile"));
var file = await ApplicationData.Current.LocalFolder.CreateFileAsync("myfile.txt", CreationCollisionOption.GenerateUniqueName);
using (var fileStream = await file.OpenAsync(FileAccessMode.ReadWrite))
IBuffer buffer = new Windows.Storage.Streams.Buffer(1024);
while ((buffer = await stream.ReadAsync(buffer, buffer.Capacity, InputStreamOptions.None)).Length > 0)
await fileStream.WriteAsync(buffer);
await fileStream.FlushAsync();
how is your webservices offering the file?
Microsoft Certified Solutions Developer - Windows Store Apps Using C# -
Consuming a web service from external system
Hi exepert,
I'm new in web service, I have to send a file towards external system so I think that I have to expose
my web service in sap system.
How, the external system, can understand that I exposed my web service, in other word that my file is
ready to be sent ?
tks, bye.I am not sure if web service is a right fit for your issue but web service is accessed from another system using a URL(Uniform Resource Locator) which will be generated when you create a web service using SE80 or by running the wizard.
The other system might not know that you file is ready, I suggest to write a sequential(repetetive) program in the target system and check by using the URL and check if the file is ready. If the file is ready pick the file else repeat the step. -
External Web Service as Legacy System
Hi,
when I use a File -> XI -> JDBC scenario, I have to define into XI (using a particular transaction...) the FTP server from which XI has to consume the XML source files. Now... I have to do the same if I use a web service instead of a File as source message? I have to define in XI the IP of webservice in a particular transaction, for example, as a Legacy System?
Thanks to all!!!hi,
>>>> I have to do the same if I use a web service instead of a File as source message?
no, as file and web service are two different adapter
file works on pull method )so it check every few minutes if the file exists - if it does it takes it
web service waits for the call from a web service client (it cannot do any pulling)
so you cannot assing any IP of this web service in directory
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
hi sdn boys
i have a problem.
i have a abap program that trasfer a file to server, than this file is put on a web page.
now i must download the file using web services.
it 's possible and How can I do?
thanksHello everyone.
I have the same problem like it is described in the first post.
I create a Web Service and also in WSADIMN my Service doesnt appear.
When I go to WSCONFIG it is not possible for me to save the created (press F5) Web Service. It seems that it is not possible for me to save in the whole system. Doesnt matter what I do, the save button is disabled.
I extend my license and I specify as user student and not developer. Could that be the problem?
Anyone an Idea
Thx a lot -
Calling a web service in external system from SRM
Hi folks,
A web service is created in the external system and I need to access this web service from a BADI. Can you tell me how can I call this web service (the external system is giving me a URL) and how I'll get a return. Please let me know in detail.
Thanks,
PremPrem,
Hi. You can call the service via HTTP protocol. Pass them values (SET_DATA), and receive a response (GET_DATA), via xml/html.
In your code you would need to create the xml data to pass them, and evaluate the returned xml.
Process...
Data setup
1) Create the XML to send them
Working with the external service
2) Open the HTTP connection
2a) cl_http_client=>create_by_url (IF_HTTP_CLIENT)
2b) lr_client->authenticate
3) Call the to send them the XML
3a) lr_client->request->set_data
3b) lr_client->send
4) Call the lr_client->receive to return the response
5) Close the connection lr_client->close
Data evaluate
6) Evaluation the returned XML and process.
Hope this helps
Cheers
Rob
Code example below.. (There are loads of SAP examples depending on which release you are on).
Process the call to the HTTP client - logic copied from RSHTML01 *
Open IF_HTTP_CLIENT
call method cl_http_client=>create_by_url
exporting
url = l_url
importing
client = lr_client
exceptions
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
others = 4.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
raising oops.
endif.
Authenticate the user
if not g_int_type-usr is initial.
move: g_int_type-usr to l_user,
g_int_type-password to l_password.
call method lr_client->authenticate
exporting
username = l_user
password = l_password.
endif.
Allow for Cookies
lr_client->propertytype_accept_cookie = lr_client->co_enabled.
Set the server protocol
select single gsval into l_server_protocol
from z77s0
where grpid = c_grpid
and semid = c_server_protocol.
if sy-subrc eq 0
and not l_server_protocol is initial.
move l_server_protocol to l_st_server_protocol.
call method lr_client->request->set_header_field
exporting
name = '~server_protocol'
value = l_st_server_protocol.
endif.
Send out the XML
Set body to XML data
lr_client->request->set_data( g_xxml ).
save_xml( i_role = cl_xml_document=>c_role_oreq ).
l_request_length = xstrlen( g_xxml ).
If Data is sent through then we need certain flags set
lr_client->request->set_header_field(
name = 'Content-Type'
value = zcl_tem_bsp=>c_xml_content ).
call method lr_client->request->set_header_field
exporting
name = '~request_method'
value = 'POST'.
Set length of string to the header fields
if not l_request_length is initial.
move l_request_length to l_st_request_length.
lr_client->request->set_header_field(
name = 'content-length'
value = l_st_request_length ).
endif.
Send the request
call method lr_client->send
exceptions
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
http_invalid_timeout = 4
others = 5.
check_for_error 'Send'.
Receive the response
call method lr_client->receive
exceptions
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
others = 4.
check_for_error 'Receive'.
Determined returned XML or HTML
g_xxml = lr_client->response->get_data( ).
Determine the header fields for failure validation
if lr_client->response->get_header_field( '~status_code' )
between 200 and 299.
save_xml( i_role = cl_xml_document=>c_role_ires ).
else.
l_status_code =
lr_client->response->get_header_field( '~status_code' ).
l_descript_1 =
lr_client->response->get_header_field( 'error' ).
l_descript_2 =
lr_client->response->get_header_field( 'errortext' ). -
Download a XML file from Web Services Using Flex
Hi All...
I am new for flex, im developing a windows application using Flex/Air, i have connected the web services with user authentication, now I want to download a xml file using web services in flex,
how can i do this?? please reply...
Thanks in advance
VasanthHi All....
I have done this myself using sample tutorials...
here is the code for your reference guys
plyLoginName = txtEmailIdDownload.text;
var urlpath:String = new String("your url p?LoginName=");
urlpath = new String(urlpath.concat(plyLoginName));
urlpath = new String(urlpath.concat("&PlayerType="));
urlpath = new String(urlpath.concat(chkseasonvalue));
Alert.show(urlpath);
var request:URLRequest = new URLRequest(urlpath)
var fileRef:FileReference = new FileReference();
fileRef.download(request,"yourfilename.xml");
Alert.show('File downloaded Successfully');
txtEmailIdDownload.text = "";
txtPWDownload.text = "";
thanks
Vasanth -
Unable to Find the Type Mapping Resource File (Two web services)
Hello,
I am using BEA weblogic 7.0 to deploy my applications. I have a web service and was able to deploy it sucessfully. I am trying to access this web service from another web service previously succesfully deployed too. When I call the second one, I have the next problem:
java.io.IOException: unable to find the type mapping resource file for:tuoprec.sinsesion.TuOPRecService
at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegistry.java:62)
at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
at tuoprec.sinsesion.TuOPRecService_Impl.<init>(TuOPRecService_Impl.java
I put the client jar file (2nd web service) obtained from the <clientgen> in the class path of the ear file (1st web service), but I have the same error.
Can anybody help me?,
jose luisHello,
I am using BEA weblogic 7.0 to deploy my applications. I have a web service and was able to deploy it sucessfully. I am trying to access this web service from another web service previously succesfully deployed too. When I call the second one, I have the next problem:
java.io.IOException: unable to find the type mapping resource file for:tuoprec.sinsesion.TuOPRecService
at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegistry.java:62)
at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
at tuoprec.sinsesion.TuOPRecService_Impl.<init>(TuOPRecService_Impl.java
I put the client jar file (2nd web service) obtained from the <clientgen> in the class path of the ear file (1st web service), but I have the same error.
Can anybody help me?,
jose luis -
File to Web service (SOAP) to File scenario with out BPM in PI 7.1
Hi All,
I have scenario File to Web service (SOAP) to File scenario with out BPM.i am getting the below error:
1) Error MP: unexpected exception caught com.sap.aii.af.service.cpa.impl.exception.CPAObjectKeyException: Value of key must not be null: ObjectId
2) Error ROB: error during processing: com.sap.aii.af.lib.mp.processor.ModuleProcessorException: Processing Error
PI server is 7.1 with SP:8
I have configured the scenario like this
1) 2 File channels - Sender & Receiver ,1 RFC channel - Receiver. We need to note that, the additional Module parameters need to be added only for sender File channel
2) Created Sender Agreement
3)Created Receiver Determination
4)Created Interface Determination
5)Created Receiver Agreement
Regards,
RameshHi,
Thanks for your reply!!
My Scenario is File to SOAP to File.
Configred modules in Sender channal below:
Prcessing sequence:
Number Module Name Module Key
1.......... AF_Modules/RequestResponseBean.......1
2.......... CallSapAdapter..........................................2
3.......... AF_Modules/ResponseOnewayBean.......3
Module Configuration:
Module Key Parameter Name ParameterValue
1 passThrough true
3 receiverChannel receiverChannel name
3 receiverService receiverService name
please tell any more confiration requered.
Regards,
Ramesh -
Hello All,
I have to upload a file through web services...The file has content type: text/plain and can have max size - 7 MB...
I tried converting the file into byte[] and send it over the web services ..it is working fine for small files but it hangs for large files...
Please help...Help is greatly appreciated
Thanks....Hai,
I'm looking to upload file(pdf/doc) with size limitation less than 500KB using web service and store the file as an blob in the Oracle DB. Please help me if you used any similar approach in your project. I would appreciate your help/suggestions.
Thank you for your time
Regards
VK -
How to create a proxy to retrieve the xml file from web services
Hi Every one,
We have a requirment where we receive a xml file from Kenexa, a third party HR tool using a middleware tool. from SAP side We have to create a proxy to retrieve the xml file from web services by initiating call through middleware tool i used earlier.
these are the steps i intend to follow to accomlish the requirement.
1) middleware tool has to initiate the call to kenexa web services to receive the xml file when it is available.
2) On SAP we need to create a ABAP Proxy service provider to middleware where this file can be received.
Can any one guide me how i can create a proxy to retrieve the xml file from web services by initiating call through other middlewre (its not PI).
Any help would be really great, i am not a ABAP developer, so please help me with this. Thanks.Thank for reply.
The computers are in different locations, but yes it's possible, the users in this enviroment are all local administrator of the machines, and we can distribute the script centrally from the DC automatically
Acrobat use Java, right? I'm not so expert in java, but something about it could not be so difficult to manage.
Do you know some place where i can get some info about JS and acrobat? -
HTTP connection from OSB web service to external system via a Proxy Server
Dear experts,
May I know has anyone tried to use HTTP protocol to send a request from OSB web service to external system via a proxy server? Heard that we need to establish some sort of tunnel (socket) to talk to Proxy Server. Can you please any have sample code or configuration steps to share?
Thank you very much!!http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/consolehelp/global_resources.html#wp1137294
Adding Proxy Servers
Use the Summary of Proxy Servers page to add and configure Proxy Server resources and make them available in Oracle Service Bus as a system resource. You must be in an active session to configure or reconfigure Proxy Server resources.
1. If you have not already done so, click Create to create a new session or click Edit to enter an existing session. See Using the Change Center.
2. Select System Administration > Proxy Servers.
3. Click Add.
4. In the Name field, enter a name for the Proxy Server resource. This is a required field.
5. In the Description field, enter a short description for the Proxy Server resource.
6. In the Host-Port Parameters section, enter the following information:
1. In the Server Host field, enter the host name or IP address of the Proxy Server. This is a required field.
The Server Host name for the Oracle Service Bus proxy server must be identical to the server host name of the actual proxy server.
2. In the Clear Text Port field, enter the Proxy Server clear-text port number.
3. In the SSL Port field, enter the Proxy Server SSL port number. You must enter either a clear text or SSL port number.
4. Click Add.
You can configure multiple Proxy Servers for each Proxy Server resource. This enables Oracle Service Bus to perform load balancing and offer fault tolerance features for the Proxy Server resource.
7. If the Proxy Server performs proxy authentication, enter a user name in the User Name field, and the associated password in the Password and Confirm Password fields.
These fields are optional, and required only if the Proxy Server is secured.
8. Click Save to create and save the Proxy Server resource in the current session.
9. To end the session and deploy the configuration to the run time, click Activate under Change Center. -
Sending audio files through web service
Hi,
How can we send audio (mp3,wmv) files through web services ? i have tried making a byte array of the file and then sending the byte array through the web service, but it give OutOfMemory error. so is there any better and practical way of doing it ?Just read catalina.bat and find where $JAVA command is called, for NT it should be "%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% "
"%_EXECJAVA% is java
%JAVA_OPTS% and %CATALINA_OPTS% are enviroment parameter for java command. Just added one of them in your case.
By the way, " i am using a HP PDA on the client side, so i cannot increase the JVM heap size there", you should info. the client, otherwise the client may be get "out of memory". -
How to send large files using web service
hello everyone,
I am new to this forum, so please pardon me if I post some silly problem...
I have created one service which sends file when client (jsp) request it. I am using JBOSS as my server. purpose of this application is when client request some fle then service will send this file... and most of the time we need to send only pdfs and ppts...
Problem is, this service sends txt, java files easily of any size but when i tried sending PDF, PPT then i got xml.SAXParseException.......
I thought this error is because of some characters, but how to fix it....
I am working on Linux.
code snippet is:
import java.io.*;
public class MyHelloService
public String file_size (String name)
String s = new String("");
byte[] sendata1=new byte[100];
try
System.out.println("name recived is :::::::::::"+name);
FileInputStream in=new FileInputStream(name);
int size=0;
size=in.available();
System.out.println("FILE SIZE IS:::::"+size);
byte[] sendata11=new byte[size];
i=in.read(sendata11);
System.out.println(new String(sendata11));
s=new String(sendata11);
catch(Exception e)
System.out.println("EXCEPTION IN JWS:::"+e);
s=new String("nofilefounderror");
return s;
pls tell me what am i doing wrong ad how to fix this?
and one more thing can i send byte array from a web service as i tried but couldnt do that... so i am reading everything in a single byte array and then converted to string.....
is it possibel to send file in a chunk?if yes, how to do that?
waiting for the reply..... pls reply as soon as possible....
Rashihi,
I am sending file from server to client i.e client will request for a file and service will send it back....... no socket connection is there...I am using JBOSS and apache axis.
pls help me out.....
Rashi
Maybe you are looking for
-
Went to Help. But the instructions didn't work clicking the iPhoto icon with the Option and Command keys opened iPhoto but not the First Aid as promised
-
Can we use a datasource of a report in another report?
Hi, I am working on Web Analysis. I have two reports belongs to same connection and there is a same filter in both reports. What I am trying to achieve is that if I change the filter value in one report it should reflect in another one. As per my und
-
Motion and Imac for Short Videos (5 min or less)
I am going to produce short videos for streaming on the web. They should not be over 5 min. I have decided to buy Final Cut Pro Suite and a new computer. Of course I want the best setup for the least amount of money. (for my needs). I have read other
-
Error while deploying gml files to portal through VC
Hi, I am trying to deploy the models through VC to portal. The model are getting compiled correctly but error out while deploying with the error" No Valid iviews" The same models are getting deployed on the Sandbox server but not on the development
-
OID Firewall / Data Connection Timeouts
Hello I have an OID cluster (11.1.0.5) setup within our environment and have a firewall installed between the OID servers and the database servers. The defualt connection timeout for the DB connection was increased to three hours, but after three ho