Xml demo, ftp & http
I've read the other notes on this topic but haven't found an answer to my problem. I can't get the ftp protocol to work. I.E. to connect to the database from my client.
The database is at version 9.2.0.3.0.
lsnrctl status gives:
LSNRCTL for 32-bit Windows: Version 9.2.0.3.0 - Production on 11-AUG-2003 11:31:32
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=bmcnt5)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 9.2.0.3.0 - Production
Start Date 10-AUG-2003 01:13:08
Uptime 1 days 10 hr. 18 min. 24 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File E:\oracle\ora92\network\admin\listener.ora
Listener Log File E:\oracle\ora92\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bmcnt5)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bmcnt5)(PORT=8080))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bmcnt5)(PORT=2100))(Presentation=FTP)(Session=RAW))
Services Summary...
Service "EDBS.WORLD" has 2 instance(s).
Instance "EDBS", status UNKNOWN, has 1 handler(s) for this service...
Instance "EDBS", status READY, has 2 handler(s) for this service...
Service "EDBU.WORLD" has 2 instance(s).
Instance "EDBU", status UNKNOWN, has 1 handler(s) for this service...
Instance "edbu", status READY, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "edbd.world" has 2 instance(s).
Instance "edbd", status UNKNOWN, has 1 handler(s) for this service...
Instance "edbd", status READY, has 1 handler(s) for this service...
Service "edbl.world" has 2 instance(s).
Instance "edbl", status UNKNOWN, has 1 handler(s) for this service...
Instance "edbl", status READY, has 2 handler(s) for this service...
Service "edbt" has 2 instance(s).
Instance "edbt", status UNKNOWN, has 1 handler(s) for this service...
Instance "edbt", status READY, has 1 handler(s) for this service...
Service "kbet.world" has 2 instance(s).
Instance "kbet", status UNKNOWN, has 1 handler(s) for this service...
Instance "kbet", status READY, has 1 handler(s) for this service...
The command completed successfully
The 9.2 (xml db) database is kbet.
The response when trying to connect using ftp is:
C:\>ftp
ftp> open bmcnt5 2100
Connected to bmcnt5.tower.bldgs.butlermfg.org.
Connection closed by remote host.
ftp>
Thanks for any assistance.
Dwight
You can set a port for an instance using a script from
SQL*Plus:
SQL> start ?/rdbms/admin/catxdbdbca.sql
You'll be prompted for the port values.
Regarding the listener issue:
- check the init.ora parameter "dispatchers":
It should at least contain
"(PROTOCOL=TCP)(service=<ORACLE_SID>XDB)"
in your case
"(PROTOCOL=TCP)(service=kbetXDB)"
- the ports for FTP and HTTP are not configured in
the "listener.ora".
- Check trace files. Perhaps there is a problem with
the server processes when you attempt to open a
connection
Similar Messages
-
Hi everyone,
please tell me how we can keep our XML file on FTP, actually my client requirement is to invoice transmission in XML format on FTP. please let me know all the procedure (functionally & technically). Answer will be rewarded.
Thanks & Regards,
Vimarsh B.Hai.
Chek the links.
http://ant.codefetch.com/example/1r/code/Chapter05/build.xml?qy=ftp
http://www.databasejournal.com/features/msaccess/article.php/1465491
http://www.oracle.com/technology/oramag/oracle/06-jan/o16xml.html
check the beloe example also.
Look at the below link for an example Program
*& Report z_xit_xml_check
report z_xit_xml_check.
class cl_ixml definition load.
type-pools: ixml.
types: begin of t_xml_line,
data(256) type x,
end of t_xml_line,
begin of tsfixml,
data(1024) type c,
end of tsfixml.
data: l_ixml type ref to if_ixml,
l_streamfactory type ref to if_ixml_stream_factory,
l_parser type ref to if_ixml_parser,
l_istream type ref to if_ixml_istream,
l_document type ref to if_ixml_document,
l_node type ref to if_ixml_node,
l_xmldata type string.
data: l_elem type ref to if_ixml_element,
l_root_node type ref to if_ixml_node,
l_next_node type ref to if_ixml_node,
l_name type string,
l_iterator type ref to if_ixml_node_iterator.
data: l_xml_table type table of t_xml_line,
l_xml_line type t_xml_line,
l_xml_table_size type i.
data: l_filename type string.
parameters: pa_file type char1024 default
'd:joaodesenvolvimentos i act este.xml'.
Validation of XML file: Only DTD included in xml document is supported
parameters: pa_val type char1 as checkbox.
start-of-selection.
Creating the main iXML factory
l_ixml = cl_ixml=>create( ).
Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
Regards,
Maria João Rocha
perform get_xml_table changing l_xml_table_size l_xml_table.
wrap the table containing the file into a stream
l_istream = l_streamfactory->create_istream_itable( table =
l_xml_table
size =
l_xml_table_size ).
Creating a document
l_document = l_ixml->create_document( ).
Create a Parser
l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
istream = l_istream
document = l_document ).
Validate a document
if pa_val eq 'X'.
l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
endif.
Parse the stream
if l_parser->parse( ) ne 0.
if l_parser->num_errors( ) ne 0.
data: parseerror type ref to if_ixml_parse_error,
str type string,
i type i,
count type i,
index type i.
count = l_parser->num_errors( ).
write: count, ' parse errors have occured:'.
index = 0.
while index < count.
parseerror = l_parser->get_error( index = index ).
i = parseerror->get_line( ).
write: 'line: ', i.
i = parseerror->get_column( ).
write: 'column: ', i.
str = parseerror->get_reason( ).
write: str.
index = index + 1.
endwhile.
endif.
endif.
Process the document
if l_parser->is_dom_generating( ) eq 'X'.
perform process_dom using l_document.
endif.
*& Form get_xml_table
form get_xml_table changing l_xml_table_size type i
l_xml_table type standard table.
Local variable declaration
data: l_len type i,
l_len2 type i,
l_tab type tsfixml,
l_content type string,
l_str1 type string,
c_conv TYPE REF TO cl_abap_conv_in_ce,
l_itab type table of string.
l_filename = pa_file.
upload a file from the client's workstation
call method cl_gui_frontend_services=>gui_upload
exporting
filename = l_filename
filetype = 'BIN'
importing
filelength = l_xml_table_size
changing
data_tab = l_xml_table
exceptions
others = 19.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
Writing the XML document to the screen
CLEAR l_str1.
LOOP AT l_xml_table INTO l_xml_line.
c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data
*replacement = space ).
c_conv->read( IMPORTING data = l_content len = l_len ).
CONCATENATE l_str1 l_content INTO l_str1.
ENDLOOP.
l_str1 = l_str1+0(l_xml_table_size).
SPLIT l_str1 AT cl_abap_char_utilities=>cr_lf INTO TABLE l_itab.
WRITE: /.
WRITE: /' XML File'.
WRITE: /.
LOOP AT l_itab INTO l_str1.
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab
*IN
l_str1 WITH space.
WRITE: / l_str1.
ENDLOOP.
WRITE: /.
endform. "get_xml_table
*& Form process_dom
form process_dom using document type ref to if_ixml_document.
data: node type ref to if_ixml_node,
iterator type ref to if_ixml_node_iterator,
nodemap type ref to if_ixml_named_node_map,
attr type ref to if_ixml_node,
name type string,
prefix type string,
value type string,
indent type i,
count type i,
index type i.
data: name2 type string,
name_root type string,
node_parent type ref to if_ixml_node,
node_root type ref to if_ixml_node,
num_children type i.
node ?= document.
check not node is initial.
uline.
write: /.
write: /' DOM-TREE'.
write: /.
if node is initial. exit. endif.
create a node iterator
iterator = node->create_iterator( ).
get current node
node = iterator->get_next( ).
loop over all nodes
while not node is initial.
indent = node->get_height( ) * 2.
indent = indent + 20.
num_children = node->num_children( ).
case node->get_type( ).
when if_ixml_node=>co_node_element.
element node
name = node->get_name( ).
nodemap = node->get_attributes( ).
node_root = node->get_root( ).
name_root = node_root->get_name( ).
write: / 'ELEMENT :'.
write: at indent name color col_positive inverse.
write: 'NUM_CHILDREN:', num_children.
write: 'ROOT:', name_root.
node_parent = node->get_parent( ).
name2 = node_parent->get_name( ).
write: 'NAME2: ' , name2.
if not nodemap is initial.
attributes
count = nodemap->get_length( ).
do count times.
index = sy-index - 1.
attr = nodemap->get_item( index ).
name = attr->get_name( ).
prefix = attr->get_namespace_prefix( ).
value = attr->get_value( ).
write: / 'ATTRIBUTE:'.
write: at indent name color col_heading inverse, '=',
value color col_total inverse.
enddo.
endif.
when if_ixml_node=>co_node_text or
if_ixml_node=>co_node_cdata_section.
text node
value = node->get_value( ).
write: / 'VALUE :'.
mjprocha
node_parent = node->get_parent( ).
write: at indent value color col_group inverse.
name2 = node_parent->get_name( ).
write: 'NAME2: ' , name2.
endcase.
advance to next node
node = iterator->get_next( ).
endwhile.
Regards.
Sowjanya.B. -
How easy to sniff a public FTP/HTTP username and password?
Hi IT Colleagues,
I understand that using plain FTP/HTTP , it is possible to sniff username and password using sniffer like wireshark.
However, I just to want know how easy to do it.
I know that in order to sniff , you should be in the same network or subnet as the website or ftp site.
Regards,
JhunIt is trivially easy to sniff credentials out of FTP and HTTP due to the fact there is no encryption at play. One should also not simply consider the risks of someone running a sniffer on your local area network, or on the local area network of the remote
server, website or ftp site, but should consider the possibility for traffic to be sniffed along the way. The NSA is doing a rather good job of sniffing all of our traffic, credentials and all! Don't just worry about someone like the NSA though, a malicious
user on an ISP network, or an administrator of a proxy server could just as easily sniff the plain text traffic.
Kieran Jacobsen @kjacobsen http://aperturescience.su -
How to receive XML from Flex HTTP POST
Hi,
We curreontly have a setup where we have a FLEX frontend send an XML through a HTTP POST and awaiting a response also in XML. On the backend this is handled relatively simply by a PHP script that basically does the following:
read data (in XML)from FlEX HTTP POST into a new temp XML file.
execute a c++ program with the XML file as one of the parameter.
return the result to FLEX
We have decided to move to BlazeDS for various reasons.
Looking at the examples bundled with BlazeDS they have a jsp example that returns an XML result to FLEX so that part is fine. I am trying to find an example of JSP (or Servlet) that is able to read the XML data from FLEX and write it into a temp XML file. I would then try to use runtime.exec to invoke a local C++ program to process the XML file the result of which will be sent back to FLEX.
Any help will be very much appreciated!<div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>I’d avoid calling an executable just to process XML –your<br />application server would provide enough support for reading and writing XML, no?<br />Also, if you’re only planning on working with XML then even BlazeDS might<br />be overkill because its focus is on sending strongly typed ActionScript data efficiently<br />to and from a client (it’s true that it does have a proxy service, but<br />that is not involved with processing the actual XML data).<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>How complex is your XML? Do you need to resolve ids and<br />references or can you parse it top down in a single pass? There are several<br />well known libraries in Java for dealing with XML – the choice depends on<br />how you need to interact with the XML. Most of them take an InputStream as a<br />source for reading XML and you can get the InputStream from the servlet<br />request. Googling should turn up numerous examples.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Pete<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><br /><br /><div><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> khwong<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Sunday, September 28, 2008 12:09 PM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> How to receive XML from Flex HTTP POST<o:p></o:p></span></p><br /><br /></div><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new discussion was started by<br />khwong in <br><br /><br><br /><b>General Discussion</b> --<br><br /> How to receive XML from Flex HTTP POST<br><br /><br><br />Hi, <br><br /><br><br />We curreontly have a setup where we have a FLEX frontend send an XML through a<br />HTTP POST and awaiting a response also in XML. On the backend this is handled<br />relatively simply by a PHP script that basically does the following: <br><br /><br><br />read data (in XML)from FlEX HTTP POST into a new temp XML file. <br><br />execute a c++ program with the XML file as one of the parameter. <br><br />return the result to FLEX <br><br /><br><br />We have decided to move to BlazeDS for various reasons. <br><br /><br><br />Looking at the examples bundled with BlazeDS they have a jsp example that<br />returns an XML result to FLEX so that part is fine. I am trying to find an<br />example of JSP (or Servlet) that is able to read the XML data from FLEX and<br />write it into a temp XML file. I would then try to use runtime.exec to invoke a<br />local C++ program to process the XML file the result of which will be sent back<br />to FLEX. <br><br /><br><br />Any help will be very much appreciated! <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b69b23">How to receive XML from<br />Flex HTTP POST</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b69b23!folder=.3c061a83">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div><br /><br /></div>
-
Hi,
I need access XML file from HTTP. Server need parameters in the URL to generate XML files. For example, http://fileserver/xmlfile?orderid=123&custid=321.
I created a XML Data Server in ODI 11g. The JDBC Url should be jdbc:snps:xml?f=<filename>&s=<schema>&d=<DTD>.
However, it reports error when replaced the <filename> with "http://fileserver/xmlfile?orderid=123&custid=321".
I found it's caused by ampersand of the HTTP Url. I guess ODI treat custid=321 as JDBC parameter rather than HTTP parameter.
How to fill the JDBC Url in this situation?
Thanks,i solved my problem by using the Socket object and controlling my file access by writing requests to the outputstream
-
Cannot use XML Forms Builder - HTTP response: 500 - Internal Server Error
Hi,
I am trying to use XML Forms Builder, have added the corresponding role to my profile and when I create a new application or do anything I get the following error popup:
HTTP response: 500 - Internal Server Error.
What should I do ??
Thank you for your help.
Thibault SchalckHi,
Check the below link for environment checking of XML Form Builder
http://help.sap.com/saphelp_nw2004s/helpdata/en/9e/9c8f411467ac5fe10000000a1550b0/frameset.htm
Raghu -
HI Gentlemen,
I executed the XML demo procedure that creates a CLOB and from this populates XMLDemoTable. Every step described was correctly executed, i e package installation, SOURCE_DIR creation etc. However, I always get
ORA-31000: Ressource 'account.xsd' is... That is, the procedure fails at dbms_xmlschema.registerSchema(...). Original description states that all scripts shipped as demo are executable wothout change. Where am I wrong? Or is there a bug in the package?
Please help if you can.
Kind regards from
Miklos HERBOLYHave you include classes12.jar/zip, xsu12.jar in your classpath?(assume using JDK 1.2.x)
-
XSQL XML demos not finding relative URLs
I finally have the XML demos running under OAS 4.0.8.1 (while waiting for IAS on NT) but none of the relative URL references in the demo files work unless I map a virtual path to every directory.
Mapping /demo to e:\xsql\demo allows me to bring up the demo page listing all demos but none will work.
If I then map /airport to e:\xsql\demo\airport the airport demo will work form the demo page.
What is the proper set of virtual paths to map.
Thanks,
Rick Post
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rick Post:
I finally have the XML demos running under OAS 4.0.8.1 (while waiting for IAS on NT) but none of the relative URL references in the demo files work unless I map a virtual path to every directory.
Mapping /demo to e:\xsql\demo allows me to bring up the demo page listing all demos but none will work.
If I then map /airport to e:\xsql\demo\airport the airport demo will work form the demo page.
What is the proper set of virtual paths to map.
Thanks,
Rick Post
<HR></BLOCKQUOTE>
IAS 1.0 has Apache 1.3.x + Jserv 1.1, you could download this version for Windows NT from Apache Web Site. There aren't differences from IAS to Apache on windows NT except for Oracle iCache.
Regards, Marcelo.
null -
Send xml file over https - urgent
Helo everybody.
I need to solve next problem:
1. Build/Use a client program that can operate with the HTTPS protocol. There are no restrictions on the type of client program used, providing it can use this protocol and deal with transactions synchronously.
2. Build/Use a program that can build a valid request XML document and attach it via a POST parameter to a HTTPS request.
POST /<URL_TO_SUBMISSION_SITE> HTTP/1.0
Example
User-Agent: HTTPTool/1.0
Content-Type: application/x-www-form-urlencoded
Content-Length: 9999999
<XML_DOCUMENT> 􀃅Post Payload
or
POST /<URL_TO_SUBMISSION_SITE> HTTP/1.0
User-Agent: HTTPTool/1.0
Content-Type: application/x-www-form-urlencoded
Content-Length: 9999999
xml=<XML_DOCUMENT>
3. Ensure the program can retrieve the HTTPS response and parse the returned XML payload.
4. Ensure the program can correctly interpret the inquiry response information within the XML return.
Please help me in point 2. I don't know how to attach xml document to https request.
I'm trying something like this :
System.setProperty("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
try {
url = new URL("https://" + path);
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
URLConnection con = null;
try {
con = url.openConnection();
con.setDoInput(true);
con.setDoOutput(true);
con.setAllowUserInteraction(true);
con.setRequestProperty("Content-type", "application/x-www-form-urlencoded;charset=Cp1250");
con.setRequestProperty("Content-Length","9999999");
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
but without success. Please helpJust saw a link, may be this will help you : http://resellers.tucows.com/documentation/xmlhttpspost.pdf
-
Sending xml data through http services in adobe air
Hello every one,
I am stucked with a problem using httpservices,
Here's my code
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="login();">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
[Bindable]
private var reqData:XML = new XML();
protected function userRequest_resultHandler(event:ResultEvent):void
// TODO Auto-generated method stub
Alert.show(event.result.toString());
private function login():void
trace("username " +username.text)
trace("password " +password.text)
trace("request"+userRequest.request.toString());
reqData =<ApplicationReq>
<InsType>"1"</InsType>
<RequestType>"3"</RequestType>
<TrackID>"22222222"</TrackID>
<Mode>"2"</Mode>
<ApplicationID>"11"</ApplicationID>
<CompanyID>"1"</CompanyID>
</ApplicationReq>
var params:Object = {};
params["username"] = "admin";
params["password"] = "admin@123";
userRequest.send();
//userRequest.send();
protected function userRequest_faultHandler(event:FaultEvent):void
// TODO Auto-generated method stub
Alert.show(event.fault.toString());
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:HTTPService id="userRequest" url="http://ins.dgsecure.com/gui/xmltest3.php"
useProxy="false" method="POST"
result="userRequest_resultHandler(event)"
resultFormat="xml" fault="userRequest_faultHandler(event)">
<s:request xmlns="">
<ApplicationReq>
<InsType>"1"</InsType>
<RequestType>"3"</RequestType>
<TrackID>"22222222"</TrackID>
<Mode>"2"</Mode>
<ApplicationID>"11"</ApplicationID>
<CompanyID>"1"</CompanyID>
</ApplicationReq>
</s:request>
</s:HTTPService>
</fx:Declarations>
<s:TextInput id="username" x="441" y="160" />
<s:TextInput id="password" x="442" y="196"/>
<s:Button x="459" y="244" label="login" click="login()"/>
</s:WindowedApplication>
if i set the content type to"application/xml " its giving RPC error, else if the data going to the server through encoding like Xmlrequest = %&ddgG&&ddjkjdj3d
how to getout of this problem and how can i send the total xml data with http requestHi,
Xcelsius/Dashboards will convert the range of values that you want to send into XML.
It then will POST the XML when it calls the web page.
For example, if you had created three ranges to send to your web page:
A (a single cell)
B (a single cell)
C (a row of three cells)
The data in the POST input stream for the web page will look something like this:
<data>
<variable name="A">
<row>
<column>10</column>
</row>
</variable>
<variable name="B">
<row>
<column>15</column>
</row>
</variable>
<variable name="C">
<row>
<column>1</column>
<column>2</column>
<column>3</column>
</row>
</variable>
</data>
I don't have an example for ASP, but I do for a JSP (attached).
Regards
Matt -
Load balancing FTP/HTTP on same VIP
Hi,
Please could someone confirm if it is possible to load balance FTP and HTTP on same VIP? Would something like this work in a one-armed design?
class-map match-any WCVS
2 match virtual-address 20.0.0.1 tcp eq www
4 match virtual-address 20.0.0.1 tcp eq ftp
policy-map multi-match int3
class WCVS
loadbalance vip inservice
loadbalance policy VS-l7slb
inspect ftp
nat dynamic 5 vlan 20
int vl20
service-policy input int3Hello,
I assume you want to ultimately use cookie sticky, since it is in your config, but not yet used. The '80' next to the rservers within the serverfarm will keep FTP from working because that will force the ACE to always use a destination port of 80 to the rservers, which is good for HTTP, but not so good for FTP. Below is your config with some modifications. I've created a new serverfarm for FTP, created a new probe for that farm, included HTTP cookie-sticky, and created a new L7 policy-map. There is one line that I would like you to remove and see if it works. If it does not, then add this line and see if it works.
Let me know how it goes...
logging enable
logging buffered 6
access-list ALL line 8 extended permit ip any any
access-list ALL line 16 extended permit icmp any any
probe http Probe_HTTP
interval 5
passdetect interval 60
expect status 200 200
open 2
receive 2
probe tcp Probe_FTP
port 21
interval 5
passdetect interval 60
open 2
receive 2
rserver host Server1
ip address 10.10.10.10
conn-limit max 4000000 min 4000000
inservice
rserver host Server2
ip address 10.10.10.11
conn-limit max 4000000 min 4000000
inservice
serverfarm host FARM-HTTP
probe Probe_HTTP
rserver Server1 80
conn-limit max 4000000 min 4000000
inservice
rserver Server2 80
conn-limit max 4000000 min 4000000
inservice
serverfarm host FARM-FTP
probe Probe_FTP
rserver Server1
conn-limit max 4000000 min 4000000
inservice
rserver Server2
conn-limit max 4000000 min 4000000
inservice
sticky http-cookie XXX_tempCookie XXX_tempCookie
cookie insert
serverfarm FARM-HTTP
class-map type management match-any Management
201 match protocol http any
202 match protocol https any
203 match protocol icmp any
204 match protocol kalap-udp any
205 match protocol ssh any
206 match protocol telnet any
207 match protocol xml-https any
class-map match-any XXX-WCVS-WWW
2 match virtual-address 10.10.10.100 tcp eq www
class-map match-any XXX-WCVS-FTP
2 match virtual-address 10.10.10.100 tcp eq ftp
3 match virtual-address 10.10.10.100 tcp range 1023 65535 <-- try first without this, then with this
class-map match-any NAT-VIP
2 match destination-address 10.10.10.100 255.255.255.255
policy-map type management first-match Management
class Management
permit
policy-map type loadbalance first-match XXX_VS-l7slb-WWW
class class-default
sticky-serverfarm XXX_tempCookie
policy-map type loadbalance first-match XXX_VS-l7slb-FTP
class class-default
Serverfarm FARM-FTP
policy-map multi-match int3
class XXX-WCVS-WWW
loadbalance vip inservice
loadbalance policy XXX_VS-l7slb-WWW
class XXX-WCVS-FTP
loadbalance vip inservice
loadbalance policy XXX_VS-l7slb-FTP
inspect ftp
class NAT-VIP
nat dynamic 5 vlan 12
interface vlan 12
ip address 10.10.10.1 255.255.255.0
alias 10.10.10.3 255.255.255.0
peer ip address 10.10.10.2 255.255.255.0
access-group input ALL
nat-pool 5 10.10.10.100 10.10.10.100 netmask 255.255.255.0 pat
service-policy input Management
service-policy input int3
no shutdown
ip route 0.0.0.0 0.0.0.0 10.10.10.254 -
Demo Error - HTTP response contains status code 404
Dear all,
While configuring the first demo on XI 3.0, I encountered the following errors when executing the scenario. The scenario is "Configuring Integration Scenarios for proxy-to-proxy communication" - Checking flight seat availability.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Integration Server
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
<SAP:P1>404</SAP:P1>
<SAP:P2>Not Found</SAP:P2>
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Error Report</title> <style> td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;} A:link A:visited A:active </style> </head> <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b> 404   Not Found</b></font></td> </tr> <tr bgcolor="#3F73A3"> <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td> <td height="23"><img width=1 height=1 border=0 alt=""></td> <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/6.40 </b></font></td> </tr> <tr bgcolor="#9DCDFD"> <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td> </tr> </table> <br><br><br><br><br><br> <p><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b> The requested resource does not exist.</b></font></p> <p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><table><tr><td valign="top"><b> Details:</b></td><td valign="top"><PRE>Go to <A HREF="/" target="_parent">main page</A> of this application!</PRE></font></td></tr></table></font></p> </body> </html></SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>HTTP response contains status code 404 with the description Not Found XML element Envelope missing in SOAP message header (SAP XI Extension)</SAP:Stack>
<SAP:Retry>N</SAP:Retry>
</SAP:Error>
Any pointers on this is greatly appreciated!!
Thanks,
CyannaHi Michal,
Thanks for your response! I followed the instruction on question 17, and recheck my configuration of the integration engines (for client 105/106/107 as stated in the SAp demo), and change the 'Corresponding Inte. Server" back to the format "dest://<RFC destination for inte. server>". I had that initially, and decided to try using the entire http path (http://<local_host:J2EE port>/sap/xi/engine/?type=entry). Neither of them worked.
Do I need to restart or reactivate any components after I changed the corresponding integration server value after the configuration?
Since the above did not work, so I went back to the possible root cause (Integration Server RFC destination). I have set up the integration server RFC destination in client 100, with the following parameters:
Under Technical Settings:
Host: <local_host>
path prefix: /sap/xi/engine/?type=entry
service no.: 5<instance>00
Under Logon/Security:
Logon Precedure: chose Basic Authentication
Client: 100
Login ID : XIAPPLUSER
Afterwards, I did the "Test Connection", and it returns the 404 error.
In addition, on the application systems side (in the demo, the case will be client 105/106/107), I have ensured the business systems are set to "application system".
Any help is greatly appreciated!
Thanks much!
Regards,
Cyanna -
Connecting to XML Repository Using HTTPS?
Is it possible to use HTTPS to connect to the repository using WebDAV or secure FTP? I can't run a web server using HTTP.
Thanks,
BillThe following may help... However please note at the moment we have not certified XML DB HTTP with a HTTPS /SSL / TCPS connection. Nor have I tried this myself..
Please follow the following steps to configure HTTPS:
1. Make sure Oracle Advance Security is installed
a. It installs by default for Enterprise Edition
2. Create and configure a Wallet
a. Refer to Oracle Advance Security Administrator�s Guide, Chapter 17 � Using Oracle Wallet Manager, for creating the Wallet
i. From $ORACLE_HOME/bin run owm
b. Import the trusted certificate in the Wallet
3. Configure SSL on the Server
a. Refer to Oracle Advance Security Administrator�s Guide, Chapter 7 � Configuring Secure Sockets Layer Authentication
b. Follow the steps in Task 3: Configure SSL on the Server, in the Enabling SSL section
4. Edit the xdbconfig.xml configuration file to specify http-protocol as tcps
a. Locate the <httpconfig> section
b. Change the value of <http-protocol> tag from tcp to tcps
5. Edit the Database initialization file to start a TCPS dispatcher
6. Restart the Database -
How to configure DMZ access for ftp/https without NAT
I have a closed network that is not connnected to the internet, just other sites that we want to communicate with. We have a cisco router connected to the outside interface on an ASA5505 and a cisco router connected to the inside interface on the same ASA5505. I have an inside interface that connects our management LAN, five separate DMZ interfaces with a separate LAN (VLAN) on each DMZ interface and the outside interface that connects to the other sites. Data is not allowed to mingle between the five DMZ's.
Alll connections to the other separate nodes are handled with the router on the external interface. IPSEC GRE tunnels have been established between all sites and BGP routing has been verified. Pings are good between inside, dmz and external interfaces and between the DMZ's and the other sites, to include hosts on our local networks and hosts at the remote sites. Inter and intra traffic is enabled.
When a remote site attempts an https connection, the initial ACK handshake makes it through the ASA5505, but the return SYN/ACK is being knocked down and I don't understand why (it is not because of ACL's, they are any any at this point).
Looking for some ideas on why the return SYN/ACK to the remote site isn't getting through the ASA5505 outbound. Will probably have the same issue with FTP, but right now, just trying to solve one problem at a time.
ASA5505 is in routed mode, not looking to NAT since the IP addresses in the DMZ need to be reached by their real IP address.
Thanks,When I use the packet-trace in both directions with the endpoint IP's, it works, all phases show allowed. I see the hits against the ACL's that show the packet entry in to the outside interface of the ASA, the build up of the connection so the initial step of the external host ACK is reaching the webserver in the DMZ. I see the hits against the incoming DMZ interface from the web server and then the log shows that the SYN,ACK is not in the state table and drops the outgoing packet. Since no outgoing SYN/ACK, no three way handshake, not login prompt, no web page to the endpoint.
I even changed the security settings on the outside interface to match the DMZ, enabled the inter and intra connections and that didn't work. ACL's on the incoming and outgoing outside and DMZ interfaces have any any tcp and any any ip but still the same result.
DMZ hosts point to the ASA. ASA points to external router on the outside interface. Pings all work fine. Tried ACL's at the top with port 443, but no hits on that. Even tried bypass with the same result. The initial packet from the external host doesn't seem to enter the state table so that when the host sends the reply (SYN/ACK) the ASA knocks it down.
Also tried twice NAT with static source/destination/port so that what comes in should be what is sent to the DMZ.
If I understand this device, I should have a rule that lets traffic in the outside interface from the external networks, a rule that allows DMZ traffic out the outside interface, a rule that allows external traffic in the DMZ and a rule that allows DMZ internal traffic back out to the external interface.
Still fuzzy on exactly how the data goes between the outside and the DMZ interfaces.
Is there something else I need to do or define to use HTTPS? I see that HTTP is defined and also has inspection rules.
I can try the captures tomorrow at work.
Thanks, for any pointers you can provide me.
Peyton
This is my first, painful experience with the ASA. -
Namespace in XML Payload for HTTP Sender
Hello,
I have just configured my snychronous HTTP <--> RFC Scenario. When I want to test it with some XML payload in the HTTP testing tool I get a mapping runtime exception.
After some investigation using the test tab in the message mapping I realized that missing namespace in the XML payload caused the error. I tried to add manually a namespace to the XML and then it worked
This is very strange I though that the namespace of the sender interface is automatically added to the XML payload?
Do you have any information on this?Hi,
U need to copy the payload from Message mapping test message tab and use that payload.
or u can use the HTTP test client for testing the same.
sample HTML code to create HTTP Client:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
You can also use the Wfetch application by Microsift for the same..
download the same from below link
http://www.iisfaq.com/Default.aspx?tabid=2975
Thnx
Chirag
Maybe you are looking for
-
AirPort Setup Assistant says my Airport Card is "not configured"
I'm trying to install an AirPort Express Base Station that I got for xmas. I'm using a MacBook Pro 17" with OS X 10.5.1, and my goal with the AirPort Express is to plug it into a stereo to play iTunes wirelessly. By the way I use AirPort on my MacBoo
-
I dont really want to get my parents involved. My whole family is eligible for an upgrade, if i order it online and have it sent to the store, then my parents will have to be there correct?
-
Windows 7 install and uninstall windows 8
HOW DO I INSTALL WINDOWS 7 AND UNINSTALL WINDOWS 8 ON MY DESKTOP HP 500-37C.
-
Creation of Daemon for the DTO for the real time data aquisition
Hi i need help how to create a daemon for the DTP in the real time data aquisition.i'm learning now Sap and practicing a lot to be professional but i need a bit of hel.Can you please give me some details how to create it? I have to access the RSRDA T
-
Adobe AIR Needed on Android / iOS to Run Adobe Flex Apps
Hi all, I want to confirm if the user has to install Adobe AIR before launching Adobe Flex apps on Android and iOS Devices. Is there any way that we could embedd Adobe AIR setup in the app file so that the user dont have to hastle in installing Adobe