Only 1 Label Printed When Sending 2 By Http フォローする
Hello,
we have setup an TCP/IP-port in Commander for listening. When sending 2 XML requests at the same time to this port, only one of the requests is printed. For testing I have sent the 2 requests with same data (same printer and label content). If we send the second request with some seconds waiting, it works. The response of the failed one looks like this:
<?xml version="1.0" encoding="utf-16"?>
<Response Version="2.0" Name="ZEQUIPRT01_XML" ID="111" AppName="BarTender" AppVersion="9.3 SR2" AppVersionId="930" AppVersionMajor="9" AppVersionMinor="30" AppVersionBuild="2725" AppInstancePid="3324" AppInstanceGuid="{455B39BD-41BC-48EB-AE0B-A78BDCB3950E}">
<User>_bartender_service</User>
<Server>SVPRT03</Server>
<Command Name="Job1">
<Print ID="0" GUID="{2824A883-8049-4821-9692-39ABFC0CE511}">
<PrintData>
<Summary>
<FormatName>C:\Bartender\ZEQUIPRT01\zequiprt01.btw</FormatName>
<TotalLabels>0</TotalLabels>
<TotalPages>0</TotalPages>
</Summary>
<Pages TotalLabels="0" TotalPages="0"/>
</PrintData>
<Message Id="2609" Guid="{04E7BA5F-7479-4E54-AC3D-D16F8B6529AC}" Severity="Warning" Category="Miscellaneous" Response="OK">
<Text>Es konnte kein leeres Etikettenformat erstellt werden.</Text>
</Message>
</Print>
</Command>
</Response>
Error Text is german and means something like "cannot create emtpy label format". What does this mean? Any ideas how to solve this problem?
Regards
Markus
5 コメント

Ian Cummings
モデレータOut of interest, if you configure the BarTender command handler to run more than one BarTender process do you still get this issue?
[/quote]
We have configured 5 BarTender processes. Sometimes I don't even get any btxml response back (means written as file to disk) for one of the two requests. I have 2 requests which I write to disk, then transformation happens and content is written after transformation to file. Until now everything looks good for both requests. I always get one correct response and printed label, for the second request I sometimes get an answer like in the first post and sometimes I don't see any response file.
Do you send both triggers in a single network connection, one after the other, or do you create a new connection for each trigger? Please give details.
What trigger detection parameters have you specified for constituting a trigger event?
Do you send both triggers in a single network connection, one after the other, or do you create a new connection for each trigger? Please give details.
[/quote]
I have attached a screenshot of trigger and command settings. I get two input files like this, I assume it's two seperate connections:
POST / HTTP/1.0
content-type: text/xml; charset=utf-8
content-length: 778
user-agent: SAP Web Application Server (1.0;701)
host: 172.xx.xx.xx:8001
accept-encoding: gzip
sap-language: D
<?xml version="1.0" encoding="UTF-8"?><ZEQUIPRT01><IDOC BEGIN="1"><EDI_DC40 SEGMENT="1"><TABNAM>EDI_DC40</TABNAM>.......</IDOC></ZEQUIPRT01>
I first remove the HTTP header with Search and Replace command, so only XML content remains. This is transformed to btXML.
サインインしてコメントを残してください。