Transaction-850.xml in B2B_IN_QUEUE has non http namespaces

Hi Ramesh,
When we are generating a Transaction-850 XML from B2B server ( it is writing to IP_IN_QUEUE) we are finding that it is generating the following XML. Now it is becoming impossible to transform this XML into an OAG XML because the namespace xmlns="NS_2064A875A1D948009896D9D4C4A112DF" in the XML.
Could you please advise about how we can make B2B server to generate an XML without this namespace.
Thanks in advance.
Shamik
<?xml version="1.0" encoding="UTF-8" ?>
<Transaction-850 xmlns="NS_2064A875A1D948009896D9D4C4A112DF" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
XDataVersion="1.0" Standard="X12" Version="V4010"
CreatedDate="2007-05-25T12:18:12" CreatedBy="ECXEngine_837"
GUID="{845A1426-0ADB-11DC-B1C4-001143EB88A8}">
<Internal-Properties>
<Data-Structure Name="Interchange">
<Lookup Name="InterchangeSenderQual">ZZ</Lookup>
<Lookup Name="InterchangeSenderID">Acme</Lookup>
<Lookup Name="InterchangeReceiverQual">ZZ</Lookup>
<Lookup Name="InterchangeReceiverID">GlobalChips</Lookup>
<Lookup Name="InterchangeControlVersion">00200</Lookup>
<Lookup Name="Standard">X12</Lookup>
<Property Name="InterchangeAuthorizationInfoQual">00</Property>
<Property Name="InterchangeAuthorizationInfo"></Property>
<Property Name="InterchangeSecurityInfoQual">00</Property>
<Property Name="InterchangeSecurityInfo"></Property>
<Property Name="InterchangeSenderQual">ZZ</Property>
<Property Name="InterchangeSenderID">Acme</Property>
<Property Name="InterchangeReceiverQual">ZZ</Property>
<Property Name="InterchangeReceiverID">GlobalChips</Property>
<Property Name="InterchangeDate">070525</Property>
<Property Name="InterchangeTime">1420</Property>
<Property Name="InterchangeControlStandard_RepeatingSeparator">U</Property>
<Property Name="InterchangeControlVersion">00200</Property>
<Property Name="InterchangeControlNumber">000001117</Property>
<Property Name="InterchangeAckRequested">0</Property>
<Property Name="InterchangeUsageIndicator">P</Property>
<Property Name="InterchangeComponentElementSep">0x2b</Property>
<Property Name="DecimalSeparator"/>
<Property Name="ElementDelimiter">0x7e</Property>
<Property Name="ReleaseCharacter"/>
<Property Name="RepeatingSeparator"/>
<Property Name="SegmentDelimiter">0x27</Property>
<Property Name="SubelementDelimiter">0x2b</Property>
<Property Name="InterchangeChildCount">1</Property>
<Property Name="InterchangeTrailerControlNumber">000001117</Property>
<Data-Structure Name="Group">
<Lookup Name="GroupSenderID">Acme</Lookup>
<Lookup Name="GroupReceiverID">GlobalChips</Lookup>
<Lookup Name="GroupVersionNumber">004010</Lookup>
<Property Name="GroupID">PO</Property>
<Property Name="GroupSenderID">Acme</Property>
<Property Name="GroupReceiverID">GlobalChips</Property>
<Property Name="GroupDate">20070525</Property>
<Property Name="GroupTime">1420</Property>
<Property Name="GroupControlNumber">1117</Property>
<Property Name="GroupAgencyCode">X</Property>
<Property Name="GroupVersionNumber">004010</Property>
<Property Name="GroupChildCount">1</Property>
<Property Name="GroupTrailerControlNumber">1117</Property>
<Data-Structure Name="Transaction">
<Lookup Name="TransactionID">850</Lookup>
<Property Name="TransactionID">850</Property>
<Property Name="TransactionControlNumber">1051</Property>
<Property Name="TransactionImplementationReference"/>
<Property Name="TransactionChildCount">11</Property>
<Property Name="TransactionTrailerControlNumber">1051</Property>
</Data-Structure>
</Data-Structure>
</Data-Structure>
</Internal-Properties>
<Segment-ST>
<Element-143>850</Element-143>
<Element-329>1051</Element-329>
</Segment-ST>
<Segment-BEG>
<Element-353>00</Element-353>
<Element-92>AB</Element-92>
<Element-324>4546</Element-324>
<Element-328 xsi:nil="true"/>
<Element-373>20070525</Element-373>
</Segment-BEG>
<Loop-N1>
<Segment-N1>
<Element-98>SF</Element-98>
<Element-93>Allied Manufacturing</Element-93>
<Element-66>92</Element-66>
<Element-67>2007</Element-67>
</Segment-N1>
<Segment-N3>
<Element-166>1145 Brokaw Road</Element-166>
</Segment-N3>
<Segment-N4>
<Element-19>San Jose</Element-19>
<Element-156>CA</Element-156>
<Element-116>95034</Element-116>
<Element-26>US</Element-26>
</Segment-N4>
</Loop-N1>
<Loop-N1>
<Segment-N1>
<Element-98>ST</Element-98>
<Element-93>Vision Operations</Element-93>
<Element-66>92</Element-66>
<Element-67>204</Element-67>
</Segment-N1>
<Segment-N3>
<Element-166>90 Fifth Avenue</Element-166>
</Segment-N3>
<Segment-N4>
<Element-19>New York</Element-19>
<Element-156>NY</Element-156>
<Element-116>10022 3422</Element-116>
<Element-26>US</Element-26>
</Segment-N4>
</Loop-N1>
<Loop-PO1>
<Segment-PO1>
<Element-350>2</Element-350>
<Element-330>12</Element-330>
<Element-355_1>EA</Element-355_1>
<Element-212 xsi:nil="true"/>
<Element-639 xsi:nil="true"/>
<Element-235_1>VP</Element-235_1>
<Element-234_1>AS65101</Element-234_1>
</Segment-PO1>
<Loop-PID>
<Segment-PID>
<Element-349>F</Element-349>
<Element-750 xsi:nil="true"/>
<Element-559 xsi:nil="true"/>
<Element-751 xsi:nil="true"/>
<Element-352>Vision Pad Bronze</Element-352>
</Segment-PID>
</Loop-PID>
</Loop-PO1>
<Segment-SE>
<Element-96>11</Element-96>
<Element-329>1051</Element-329>
</Segment-SE>
</Transaction-850>

And this is the wire message
==============================
HTTP.HostName=oracle02.dev.rapidigm.com
HTTP.RemoteAddr=65.163.205.228
HTTP.RemoteHost=65.163.205.228
ISA~00~ ~00~ ~ZZ~Acme ~ZZ~GlobalChips ~070531~0218~U~00200~000001119~0~P~+'GS~PO~Acme~GlobalChips~20070531~0218~1119~X~004010'ST~850~1053'BEG~00~AB~4532~~20070517'N1~SF~Allied Manufacturing~92~2007'N3~1145 Brokaw Road'N4~San Jose~CA~95034~US'N1~ST~Vision Operations~92~204'N3~90 Fifth Avenue'N4~New York~NY~10022 3422~US'PO1~2~12~EA~~~VP~AS65101'PID~F~~~~Vision Pad Bronze'SE~11~1053'GE~1~1119'IEA~1~000001119'
====================================================

Similar Messages

  • Response XML - How to remove non-used namespaces ?

    Hey guys, I have a proxy service with the following transformation:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:inf="http://dfs.us.dell.com/Infolease"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">               
         <xsl:template match="/">          
              <xsl:if test="Envelope/Body/Response/Quotes">
                   <xsl:variable name="oNodo" select="Envelope/Body/Response/Quotes"/>          
                   <inf:GetBuyoutQuoteDetailsResponse xmlns:inf="http://dfs.us.dell.com/Infolease">
                        <inf:QtKey><xsl:value-of select="$oNodo/@pk"/></inf:QtKey>
                        <inf:QtAmtQuotedx><xsl:value-of select="$oNodo/QtAmtQuoted/text()"/></inf:QtAmtQuotedx>                    
              <inf:QtBuyoutDate><xsl:value-of select="$oNodo/QtBuyoutDate/text()"/></inf:QtBuyoutDate>
              <inf:QtExpirationDate><xsl:value-of select="$oNodo/QtExpirationDate/text()"/></inf:QtExpirationDate>
              <inf:QtQuotedDate><xsl:value-of select="$oNodo/QtQuotedDate/text()"/></inf:QtQuotedDate>
              <inf:QtRcvbBalance><xsl:value-of select="$oNodo/QtRcvbBalance/text()"/></inf:QtRcvbBalance>
              <xsl:element name="inf:QtBuyoutType">
                   <xsl:attribute name="pk"><xsl:value-of select="$oNodo/QtBuyoutType/@pk"/></xsl:attribute>
                   <xsl:element name="inf:BuyDefTypeDesc"><xsl:value-of select="$oNodo/QtBuyoutType/BuyDefTypeDesc"/></xsl:element>
              </xsl:element>                                                       
                   </inf:GetBuyoutQuoteDetailsResponse>
              </xsl:if>               
         </xsl:template>     
    </xsl:stylesheet>
    This is the response of the service after the proxy finishs:
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header/>
    <soapenv:Body>
    <inf:GetBuyoutQuoteResponse xmlns:inf="http://dfs.us.dell.com/Infolease">
    <inf:QtKey xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">200-1122247-018*34</inf:QtKey>
    <inf:QtAmtQuotedx xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">8195.82</inf:QtAmtQuotedx>
    <inf:QtBuyoutDate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2011-10-04</inf:QtBuyoutDate>
    <inf:QtExpirationDate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2012-12-29</inf:QtExpirationDate>
    <inf:QtQuotedDate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2011-10-04</inf:QtQuotedDate>
    <inf:QtRcvbBalance xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">7021.83</inf:QtRcvbBalance>
    <inf:QtBuyoutType pk="BUYOUT*34"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <inf:BuyDefTypeDesc>EARLY PURCHASE-10%-TRANSACTION</inf:BuyDefTypeDesc>
    </inf:QtBuyoutType>
    </inf:GetBuyoutQuoteResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    How do I remove these XSD and XSI namespaces? I haven't referenced them..
    Thanks in advance,
    Davinod

    Hi,
    Please remove the 3 non-exists DC from environment using the metadata clean-up process using script from below article. then manually delete the records from DNS management console as given below.
    https://gallery.technet.microsoft.com/scriptcenter/d31f091f-2642-4ede-9f97-0e1cc4d577f3
    Manual steps to clear the records.
    Dnsmgmt.msc [Dns Management]
    A.Expand the forward lookup zones\_msdcs folder
    i. Make sure only the actual domain controllers are listed, delete wrong Alias recordsremove wrong name server records
    ii. Select the container [forward lookup zones\_msdcs.domain.com\dc\_sites_\sitename\_tcp] > delete incorrect _ldap and _kerberos records are listed.
    iii. Select the container [forward lookup zones\_msdcs.domain.com\dc\_tcp] and delete incorrect _ldap and _kerberos records
    iv. Expand the [forward lookup zones\_msdcs.domain.com\domains\guid\_tcp] and delete incorrect _ldap entries
    v. Select [forward lookup zones\_msdcs.domain.com\gc] – delete incorrect HostA records
    vi. Expand the [forward lookup zones\_msdcs.domain.com\gc\_sites\sitename\_tcp] – delete incorrect _ldap entries
    vii.Select the [forward lookup zones\_msdcs.domain.com\gc\_tcp] – delete incorrect _ldap entries
    viii. Select the [forward lookup zones\_msdcs.domain.com\pdc\_tcp] – delete incorrect _ldap entries
    B.Expand the forward lookup zones\domain.com folder
    i.Delete Host(A) records of dc’s which are non-existant.
    ii.Correct the NameServer (NS) records
    iii. Follow steps similar to ’ A ii ‘ >> ‘ A viii’
    · Dssite.msc [Sites and Services]
    A.Expand the [Sites\Sitename\Servers] – delete incorrect server’s
    B.Delete incorrect subnet configurations [Sites\Subnets]
    C.Delete incorrect site links [Sites\IP]
    · Make sure the domain controllers are pointing to the correct dns servers in tcp\ip settings.
    · Force replication – ‘repadmin /syncall’

  • Assign Statement using EDI 850 XML Problem - No BPEL Process Instantion

    I am currently experiencing the following problem: I receive an EDI 850 message via AQ, and then when I try to copy one of the segments in the message
    to a temporary variable, my BPEL process instantiation never shows up in the BPEL console display, nor does it error out anywhere where I can see.
    Note: if I take out this assign activity, the BPEL process instantiation does show in the console, and does complete.
    Can someone tell me where to look inside of the BPEL engine for any error information and perhaps explain why this situation happens in the first place. Also, if anyone can tell me if my syntax below for the extraction is correct, that would also be great.
    Arthur (203-921-5925)
    </schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" >
    <import namespace="http://www.edifecs.com/xdata/100"
    schemaLocation="850.xsd" />
    </schema>
    </types>
    <message name="Header_msg">
    <part name="Header" element="tns:Header"/>
    </message>
    <message name="Transaction-850_msg">
    <part name="Transaction-850" element="imp1:Transaction-850"/>
    </message>
    <variable name="Variable_1" element="ns3:Segment-CTT"/>
    <variable name="Receive_PO_Dequeue_InputVariable"
    messageType="ns1:Transaction-850_msg"/>
    <sequence name="main">
    <receive name="Receive_PO" partnerLink="X12_4010_850_PO_DEQ"
    portType="ns1:Dequeue_ptt" operation="Dequeue"
    variable="Receive_PO_Dequeue_InputVariable" createInstance="yes"
    bpelx:headerVariable="Variable_Receive_X12_4010_850_PO_Hdr"/>
    <assign name="abc_test_assign">
    <copy>
    <from expression="bpws:getVariableData('Receive_PO_Dequeue_InputVariable',
    'Transaction-850','/ns3:Transaction-850/ns3:Loop-CTT/ns3:Segment-CTT')"/>
    <to variable="Variable_1"/>
    </copy>
    </assign>

    Hi Arthur,
    Please verify the namespace in the xml instance matches the xsd used in BPEL. In many cases, the data cannot be copied/transformed successfully if there is a mismatch in namespace.
    Eng

  • Non-http servlet engine?

    Hi, I'm new to servlet development and I'm not sure this question has been answered here before. So I apologize if it has.
    Basically I want to have an integrated server that can accept both http and non-http requests. So my initial thought was to write an HttpServlet and a GenericServlet. Then I googled for clues on how to implement that and found from the JavaRanch website http://faq.javaranch.com/java/ServletsFaq#otherProtocols that this task could be a daunting one because that'd imply that I have to write a new servlet engine.
    So my question is, is this true in your expert opinion? And, if the custom non-http protocol has a similar syntax as http (e.g. RTSP), is it possible to just extend the http servlet engine to support it? And would that be doable without much effort?
    Thanks,
    Liang.

    Would you actually need the entire servlet system for the new protocol? For your typical simple request/reply protocol you'd normally:
    Create a server socket.
    When a connection arrives, start a thread to service it.
    In the service thread, read and parse request.
    Send reply.
    Close socket, exit thread.
    A servlet system adds a bunch of stuff to that: a layer that allows you to configure pluggable request handlers; methdod-specific functions (POST -> doPost()); a ServletRequest object; etc. Are those things relevant to the new protocol? Do you have requests with URL-like things in the header, allowing routing requests to different servlets? Do you plan to have lots of servlets for the protocol (one servlet -> no much point in XML-configurable request routing)?
    I'd hope that I wouldn't need to implement a configurable request routing infrastructure. It's a lot of work if it's not really needed. Just write a socket server. If you have an associated web server (e.g. HTML pages from which the user starts RTSP requests) you can even run the socket server inside the servlet container if that helps.

  • Why does Apple support not have the manual for iPad and iOS5 available?  The manual on the site has none of the new features.

    Has anyone else noticed that the manual has none of the new features, for example iCloud in it?  The iPhone iOS5 manual is correct.

    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf

  • Sun-cmp-mappings.xml exists but has invalid contents: getSchema() == null

    Can anyone help please!
    what this error means by invalid contents: getSchema() == null
    when I try to deploy or veryfy, this is what I get:
    deployment started : 0%
    Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- JDO74041: While deploying 'EJBModuleOnlineRegistration' from 'EJBModuleOnlineRegistration': sun-cmp-mappings.xml exists but has invalid contents: getSchema() == null
    ; requested operation cannot be completed
    D:\Projects\EJBModuleOnlineRegistration\nbproject\build-impl.xml:317: Deployment failed.
    BUILD FAILED (total time: 29 seconds)

    The most probable there are some errors in your sun-cmp-mappings.xml file.
    A few similar Q&As:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5045366
    http://www.netbeans.org/issues/show_bug.cgi?id=59394

  • [svn:bz-trunk] 20693: Add a web.xml. crx that has no MessageBroker and RDSServlet.

    Revision: 20693
    Revision: 20693
    Author:   [email protected]
    Date:     2011-03-08 13:09:18 -0800 (Tue, 08 Mar 2011)
    Log Message:
    Add a web.xml.crx that has no MessageBroker and RDSServlet.  Remove reference of webtier in HttpServiceTest.java.  Not sure which tests are using this class and hopefully we can get rid of it since webtier.jar is about to be gone.  Watch out for any new failtures that might be related.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/dev/httpservice/HttpServiceTest.java
        blazeds/trunk/qa/apps/qa-regress/build.xml
    Added Paths:
        blazeds/trunk/qa/resources/webtier/qa/web.xml.crx

    I am modifying the correct httpd.conf file on the server, it just doesn't seem to work. - If I put the rewrite rules in the <Directory /> the rewrite works but it adds /Library/WebServer/Documents to the URL.
    I also tried putting the rewrite rules in <IfModule mod_rewrite.c> but that did not work either.
    mod_rewrite is enabled and running on the server.
    I will post the rewrite rules again in the code brackets. Sorry for the long post. - If some one can try them out on their Leopard Server to see if they can get them to work, it would be much appreciated. Again, these work on my Leopard Client but I can't get them to work on Server.
    -- The httpd.conf file posted above is just the default conf file found in /private/etc/apache2/
    <code>
    RewriteEngine On
    Options +FollowSymLinks
    RewriteRule ^(.+)/$ http://%{HTTP_HOST}$1 [R=301, L]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.php(.*)\ HTTP
    RewriteRule (.+)\.php(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.asp(.*)\ HTTP
    RewriteRule (.+)\.asp(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.aspx(.*)\ HTTP
    RewriteRule (.+)\.aspx(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.htm.(.)\ HTTP
    RewriteRule (.+)\.htm.(.)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.cfm(.*)\ HTTP
    RewriteRule (.+)\.cfm(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.bak(.*)\ HTTP
    RewriteRule (.+)\.bak(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.inc(.*)\ HTTP
    RewriteRule (.+)\.inc(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\..(.)\ HTTP
    RewriteRule (.+)\..(.)$ $1$2 [R, L]]
    <code>

  • Resolving non http urls in JSP

    When I include an html hyperlink in my JSP as follows :
    Yahoo
    then the hyperlink on the web page points to
    http://www.yahoo.com
    However if I write the hyperlink as
    Yahoo
    then the hyperlink on the web page is wrongly created as
    http://<hostname>/www.yahoo.com
    This seems to be an issue with the JSP engine. I am using weblogic.
    Is there any way to resolve the non http urls?

    This has nothing to do with the JSP engine.
    <a href="www.yahoo.com">Yahoo</a> IS not a JSP tag and is not touched by the JSP engine.
    The problem you have is just your WEBBROWSER interpreting the url wrongly mainly becasue you have forgotten to provided the protocol your webbrowser has to use.

  • Cisco CSS as non-HTTPS SSL-traffic terminator

    Hi!
    Does anybody know is it real to use Cisco CSS as SSL-traffic terminator. I need to terminate non-HTTPS SSL-traffic on this device (i.e. SSL-encrypted sessions of any particular TCP-based application-layer protocol, not https)? If not, is there any CISCO device capable of doing such a job?
    Regards, Amir

    Hi!
    Thank you very much for your reply.
    I know about the S model - as per my post - but unfortunately I have realized after making the purchase.
    Can you please help me with the following issue: my unit is not able to boot from FTP, even if I follow up the CISCO official documentation for that version (I issue all the commands as in the manual). More than that, if I setup the Primary Boot Configuration and then I want to check it up there is nothing in that field. The Secondary Boot Configuration keeps its settings and after the Primary failure it will try the Network Booting but with Failed status - returning me to the OffDM.
    I mention that I am using the OffDM because the unit I bought has no Flash Card.
    Also I am not sure how can I have a "network mounted filesystem" and in the meantime to use the FTP protocol;  setting up a NFS server wont provide me with Windows style absolute path like k:/.... as per CISCO official guide. Is that a plain-ftp generically called as Network File System??? "First, create these subdirectories on the FTP server, then copy the files from the boot image to the subdirectories"
    Is this linked with the fact that I am using a Linux box for my FTP Server? Can you please help me to understand what the following line from CISCO official guide means "A network boot is not supported on UNIX workstations"
    Thank you!

  • Non-HTTP(S) Servlets

    I'd like to use servlets to provide services over a non-HTTP protocol (e.g. FTP, NNTP, SMTP, etc.). The existence of the Servlet -> GenericServlet -> HTTPServlet hierarchy suggests this is supposed to be possible but I'm not sure how to do it. The main problem I see is getting my servlet container to know what protocol (IP port) I want to use.
    So, are non-HTTP servlets supposed provide their own logic to set up a socket listener in the Servlet.init() method, manage their own thread pool, and dispatch requests to servlet instances as they are received? Or, is there some service provider API I can use to plug a non-HTTP service into my servlet container?
    BTW, I'd like to do this in a J2EE v1.3 server.
    Thanks, Dave

    I'd like to use servlets to provide services over a
    non-HTTP protocol (e.g. FTP, NNTP, SMTP, etc.)My first reaction would be "don't".
    In an HTTP request, there is a bunch of headers, which the servlet container uses to decide which servlet it will invoke. There are no such headers in e.g. FTP. Even if you manage to subclass Servlet to FTPServlet, the web server doesn't know how that FTP requests should be routed to that servlet.
    The piece of code that listens to port 80 etc really wants to see "GET", "POST" etc plus an URL on the first line of incoming data. That code won't respond well to seeing SMTP's "HELO".
    That being said, you can put such protocols in a web server or app server. Write a thread that creates a server socket for the appropriate port and then sits in accept(). When a connection comes in, it starts a new per-client thread which talks SMTP or whatever over the incoming socket. Pretty basic client/server socket programming.
    Also, to me, the servlet model appears inappropriate for FTP et al: a servlet services one request, then exits. FTP, NNTP and SMTP are all more like a discussion than request-reply.
    In theory, it would be possible to fashion e.g. an SMTP server as a sort of a servlet. Instead of doGet() and such perhaps you'd have doHELO(), doMAIL_FROM(), doDATA() etc. But that seems overly complicated... Seems easier to me to do simply:
        while (true)
            read socket input a line at a time;
            if (in data mode) {
                check for end-of-message;
                append to string buffer;
            } else {
                tokenize it;
                obey the incoming command;
        }Maybe if you really want to use the servlet model, write a Servlet-like class that has a doCommand() method and make the "obey the incoming command" bit above call that. I'm not sure how much that buys, though. There are enough small differences in things like command tokenizing to make code reuse in the various protocol "servlets" difficult.
    Btw, FTP in particular is an incredibly messy protocol. Implement that one only if you absolutely must, and even then crib some existing public domain implementation as a base. Active/passive, separate command/data channels, a wide range of buggy FTP clients, security difficult to get right, ... ouch...

  • ISA570 Block Non-HTTP Access by FQDN instead of IP Address

    Does anyone know a way to block any access to a site by FQDN instead of its ip address on the ISA500 series devices?  I know you can block website access with Web URL filtering using FQDNs, but what it you want to block non-HTTP traffic to a site that has either multiple IPs or dynamic IPs?  I typically use  Address Management to setup sites that I want to limit or block, but you have to define specific IPs or ranges and that doesn't always work especially if host IPs are dynamic.   Also, host static IPs can change over time so even if you define them in Address Management you have to periodically audit them to make sure they are still correct.
    This is not only an issue with blocking sites, but also in trying to define QoS policies as those use addresses defined in Address Management which again use specific IPs or ranges.  I am just trying to find a more reliable, long term, method of doing these types of management activities on the ISA500 devices.
    Thanks for any advice.

    I am pretty sure you cannot do this on ISA.  I think you could use opendns.com to accomplish blocking non-http sites by FQDN.  You could do blocking and QOS by FQDN  with what Cisco generally considers the replacement for this product, the Meraki MX60.

  • Does Windows Intune has non-profit pricing for NGO organizations

    please let me know, if Windows Intune has non-profit pricing for NGO organizations
    Thanks,
    Max Hazan

    Have you checked the normal channels like:
    http://www.techsoup.org/microsoft
    -Neil
    neilgo

  • Formatting an XML string that has a date

    Hi All - new to this forum!
    Not familiar with XML operations and seeking some advise. I have a field that contains XML text that has a date within that I want to extract and format appropriately for some reports.
    Getting to the date portion of the field is not pretty (original code below) and could desire some work itself, but the real problem lies in formatting the date once extracted; sometimes the date text is in the format of "Month DD YYYY" and other times "DD Month YYYY" so the below code fails if the latter is found.
    SELECT TO_DATE(RTRIM(SUBSTR(email_variables, INSTR(email_variables,'CHECKIN_DATE')+22,18),']]></CHECKIN_DATE><CHECKOUT_DATE>]'),'Month DD YYYY') CHECKIN_DATE,COUNT(*)
    FROM t_ecomm_relations_queue
    WHERE code_corr_ecat = 'PREA'
    AND status IN ('A', 'R')
    AND TO_DATE(RTRIM(SUBSTR(email_variables, INSTR(email_variables,'CHECKIN_DATE')+22,18),']]></CHECKIN_DATE><CHECKOUT_DATE>]'), 'Month DD YYYY') < TRUNC(SYSDATE) + 7
    AND TO_DATE(RTRIM(SUBSTR(email_variables, INSTR(email_variables,'CHECKIN_DATE')+22,18),']]></CHECKIN_DATE><CHECKOUT_DATE>]'), 'Month DD YYYY') >= TRUNC(SYSDATE)
    GROUP BY TO_DATE(RTRIM(SUBSTR(email_variables, INSTR(email_variables,'CHECKIN_DATE')+22,18),']]></CHECKIN_DATE><CHECKOUT_DATE>]'),'Month DD YYYY');
    Any ideas for more efficient code or options for formatting is appreciated.
    Thank you!

    The best thing to do with a date you want to report on, is to not store it corrupted inside XML.
    Multiple reasons why are discussed here.
    If you are stuck with the ugly inefficient design, then you are probably stuck with ugly inefficient code as a result.

  • Change over from a simple Xml call to a rpc-Http call ....

    Hi there,
    I need to change over from a simple Xml call:
    <mx:XML id="urlsGeneral" source="http://www.mySite.com//.../AFS.xml"/>
    to a rpc-Http call which is updating the readout if Xml is changed at any time.
    I forgot to mention the most important item yet a very simple one: I need this only to be displayed in a title etc, and NOT a datagrid or else example below.
    title="{urlsGeneral.urlGeneral.(@name==0).age}
    I tried a lot today, but just can't get it right as the id="urlsGeneral" is always the problem.
    Any help would be appriciated !!! Thanks in advance. regards aktell2007
    <urlsGeneral>
    <urlGeneral>
    <name>Jim</name>
    <age>32</age>
    </urlGeneral>
    <urlGeneral>
    <name>Jim</name>
    <age>32</age>
    </urlGeneral>
    </urlsGeneral>
    Another call:
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    public var myData:ArrayCollection;
    protected function myHttpService_resultHandler(event:ResultEvent):void {
    myData = event.result.urlsGeneral.urlGeneral;
    ]]>
    </mx:Script>
    <mx:HTTPService
    id="myHttpService"
    url="http://www.mySite.com//..../AFS.xml"
    result="myHttpService_resultHandler(event)"/>
    Preferable I wanted something like this to work:
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.FaultEvent;
    import mx.managers.CursorManager;
    import mx.controls.Alert;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.xml.SimpleXMLDecoder;
    // Don't use here as it is already used in .swc !
    /* import mx.rpc.http.HTTPService; */
    private var myHTTP:HTTPService;
    private function initConfigCall():void {
    myHTTP = new HTTPService();
    myHTTP.url = "com/assets/data/changesAppAIRPIOne001.xml";
    myHTTP.send();
    myHTTP.resultFormat = "xml";
    myHTTP.addEventListener(ResultEvent.RESULT, resultHandler);
    myHTTP.addEventListener(FaultEvent.FAULT, faultHandler);
    CursorManager.setBusyCursor();
    private function resultHandler(evt:ResultEvent):void {
    var xmlStr:String = evt.result.toString();
    var xmlDoc:XMLDocument = new XMLDocument(xmlStr);
    var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);
    var resultObj:Object = decoder.decodeXML(xmlDoc);
    // Removed [0] on single node !
    appUpdateAvl.text = resultObj.application.configApp.appNewUpDate;
    appLastChanged.text = resultObj.application.configApp.appLastChanged;
    appChangedSections.text = resultObj.application.configApp.appChangedSections;
    CursorManager.removeBusyCursor();
    myHTTP.disconnect();
    private function faultHandler(event:mx.rpc.events.FaultEvent):void {
    var faultInfo:String="fault details: "+event.fault.faultDetail+"\n\n";
    faultInfo+="fault faultString: "+event.fault.faultString+"\n\n";
    mx.controls.Alert.show(faultInfo,"Fault Information");
    var eventInfo:String="event target: "+event.target+"\n\n";
    eventInfo+="event type: "+event.type+"\n\n";
    mx.controls.Alert.show(eventInfo,"Event Information");
    CursorManager.removeBusyCursor();
    myHTTP.disconnect();
    ]]>
    </mx:Script>

    Hi again,
    These days there are more quetions than answeres on any forum, and very seldom anybody shares the answer if they lucky enough to work it out so here is my answer for the above question
    Change over from a simple Xml call to a rpc-Http call ....
    I had it all along as a commend noted: // Removed [0] on single node !
    So instead of title="{urlsGeneral.urlGeneral.(@name==0).age} it would be now title="{resultObj.urlsGeneral.urlGeneral.[0].age} and now it works perfectly well. I hope that one or the other of you can use the answer and the code !!! regards aktell2007

  • XML Form Build Error Unexpected http response code 500: Internal Server Err

    Hi
    I have the following error message when i am trying to load  XML Form Builder
    "Unexpected http response code 500: Internal Server Error "
    When i am trying to Run the test its shows me the follwoing error log.
    Test Environment: XML Forms Builder Environment Check *
    Start Time: 2008-09-17 15:09:53                       *
    End Time: 2008-09-17 15:09:59                         *
    - Test: Java Environment
    - OK
    -      Start Time: 2008-09-17 15:09:53
    -      End Time: 2008-09-17 15:09:53
    -      Java Runtime Version is 1.6.0_02
    - Test: Connection Tests
    - ! Test Failed !
    -      Start Time: 2008-09-17 15:09:53
    -      End Time: 2008-09-17 15:09:59
    -      A test in the suite failed
         - Test: Download XML Forms Builder Jar
         - OK
         -      Start Time: 2008-09-17 15:09:53
         -      End Time: 2008-09-17 15:09:55
         -      Successfully loaded XML Forms Builder Jar from http://zhmscad8.whirlpool.com:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/etc/xmlforms/km.appl.xmlforms.xfbuilder_core.jar, Version 6.4.1
         - Test: Download SAP XML Toolkit Jar
         - OK
         -      Start Time: 2008-09-17 15:09:55
         -      End Time: 2008-09-17 15:09:59
         -      Successfully loaded SAP XML Toolkit Jar from http://zhmscad8.whirlpool.com:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/etc/xmlforms/sapxmltoolkit.jar
         - Test: XML Forms Builder Version
         - ! Test Failed !
         -      Start Time: 2008-09-17 15:09:59
         -      End Time: 2008-09-17 15:09:59
         -      Unexpected http response code 500: Internal Server Error
         - Test: Load Global Settings
         - Not Started
         -      This test depends on the test "XML Forms Builder Version", which did not complete successfully
         - Test: Load Project List
         - Not Started
         -      This test depends on the test "XML Forms Builder Version", which did not complete successfully
    Please let me know the how to slove this Problem.
    Thanks
    Mmukesh
    Edited by: mmukesh reddy on Sep 17, 2008 9:29 PM

    Hi Koti Reddy
    That is not related to my issue.
    Here this error only comming for two users in my group.
    The environment every thing working for remaining user.  But only that two users are facing the problem.
    So please let me know is there any security issues.
    Thanks
    mmukesh

Maybe you are looking for

  • Axis webservice through OSB

    I have a web service which developed using axis and deployed in weblogic. I have configured in OSB to access this web service through OSB. My endpoint is OSB server URL which points axis webservice deployed in weblogic. I have user id and [assword se

  • I want to upgrade from PS Elements 7 to CS4

    Hi I want to upgrade from PS Elements 7 to CS4 on my PC running windows vista home premium 32bit,as anyone done this,if so are there any issues I may encounter. I live in the UK TIA John

  • Time Machine to recover data on a drive you have to...

    Hi, Quick question. I was reading about recovering a drive that had been backuped using Time Machine, Time Machine won't make a drive bootable, so you have to go another way. On point 5 of the link below it says "Insert your Mac OS X Install disk, an

  • Dell 3115CN not working since Maverick Update

    I know this is a Dell issue, that being said, does anyone know of a work around so I can use my printer?

  • Keyboard typing adjacent letters

    My niece and daughter were playing my MacBook Pro and now when I type some of he letters it types the letter to the left of it first