> From: Michael Raffenberg [mailto:[EMAIL PROTECTED]] > > Hi all, > > i am working on a service for the RosettaNet PIP2A9. > Is it possible to accept HttpRequests with the following > MIME-Declarations by the StreamGenerator?
No. It does not eat mime multipart. > If not, can you give me some > hints on how to accept these Requests? You can code own generator, base it on stream generator. Take a look at the cocoon.components.request.multipart package - it will help you with parsing this request. See also MultipartRequestFactoryImpl. Vadim > MIME-Version: 1.0 > Content-type: Multipart/Related; boundary="-------------------------- MIME > PART -----------------------" > Content-Description: RosettaNet message > > > ---------------------------- MIME PART ------------------------ > Content-type: Application/XML; RNSubType="preamble-header" > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE Preamble SYSTEM "PreamblePartMessageGuideline.dtd"> > <Preamble> > <DateTimeStamp>12345</DateTimeStamp> > > <GlobalAdministeringAuthorityCode>RosettaNet</GlobalAdministeringAuthori tyCode > > > <GlobalUsageCode>Test</GlobalUsageCode> > <VersionIdentifier>1.1</VersionIdentifier> > </Preamble> > > > ---------------------------- MIME PART ------------------------ > Content-type: Application/XML; RNSubType="service-header" > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE ServiceHeader SYSTEM "ServiceHeaderPartMessageGuideline.dtd"> > <ServiceHeader> > <ProcessControl> > <ProcessIdentity> > <GlobalProcessCode>Query Electronic Component Technical > Information</GlobalProcessCode> > <GlobalProcessIndicatorCode>2A9</GlobalProcessIndicatorCode> > </ProcessIdentity> > <ServiceRoute> > <fromService> > <BusinessServiceDescription> > <GlobalBusinessServiceCode>Product Information User > Service</GlobalBusinessServiceCode> > </BusinessServiceDescription> > </fromService> > <toService> > <BusinessServiceDescription> > <GlobalBusinessServiceCode>Product Information > Distributor Service</GlobalBusinessServiceCode> > </BusinessServiceDescription> > </toService> > </ServiceRoute> > <TransactionControl> > <AttemptCount>1</AttemptCount> > <PartnerRoleRoute> > <fromRole> > <PartnerRoleDescription> > <GlobalPartnerRoleClassificationCode>Product > Information > User</GlobalPartnerRoleClassificationCode> > </PartnerRoleDescription> > </fromRole> > <toRole> > <PartnerRoleDescription> > <GlobalPartnerRoleClassificationCode>Product > Information > Distributor</GlobalPartnerRoleClassificationCode> > </PartnerRoleDescription> > </toRole> > </PartnerRoleRoute> > <TransactionIdentity> > <GlobalTransactionCode>Query EC Technical > Information</GlobalTransactionCode> > <InstanceIdentifier>1</InstanceIdentifier> > </TransactionIdentity> > <ActionControl> > <ActionIdentity> > <GlobalBusinessActionCode>Technical Information > Query Action</GlobalBusinessActionCode> > <InstanceIdentifier>1</InstanceIdentifier> > <VersionIdentifier>1.1</VersionIdentifier> > </ActionIdentity> > > <GlobalDocumentFunctionCode>Request</GlobalDocumentFunctionCode> > <PartnerRoute> > <fromPartner> > <PartnerDescription> > <BusinessDescription> > > <GlobalBusinessIdentifier>621911718</GlobalBusinessIdentifier> > </BusinessDescription> > <GlobalPartnerClassificationCode>End > User</GlobalPartnerClassificationCode> > </PartnerDescription> > </fromPartner> > <toPartner> > <PartnerDescription> > <BusinessDescription> > > <GlobalBusinessIdentifier>100000003</GlobalBusinessIdentifier> > </BusinessDescription> > > <GlobalPartnerClassificationCode>Distributor</GlobalPartnerClassificatio nCode> > </PartnerDescription> > </toPartner> > </PartnerRoute> > </ActionControl> > </TransactionControl> > </ProcessControl> > </ServiceHeader> > > > ---------------------------- MIME PART ------------------------ > Content-type: Application/XML; RNSubType="service-content" > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE Pip2A9ECTechnicalInformationQuery PUBLIC "-//Si2/RosettaNet//DTD > PIP2A9 1.0 20000820//EN" > "qd.dtd"> > <Pip2A9ECTechnicalInformationQuery> > <dict.identifier>-//RosettaNet//DICTIONARY EC Technical Dictionary > 20000821 1.1.1</dict.identifier> > <query max.records="4000" starting.at="0"> > <element dicRef="RNP145"> > <name>Disclaimer</name> > <value>test</value> > </element> > <element> > <name>RosettaNet Class</name> > <value>XJA751</value> > </element> > </query> > <fromRole> > <PartnerRoleDescription> > <GlobalPartnerRoleClassificationCode>Product Information > User</GlobalPartnerRoleClassificationCode> > <PartnerDescription> > <GlobalPartnerClassificationCode>End > User</GlobalPartnerClassificationCode> > <BusinessDescription> > > <GlobalBusinessIdentifier>621911718</GlobalBusinessIdentifier> > <GlobalSupplyChainCode>Electronic > Components</GlobalSupplyChainCode> > </BusinessDescription> > </PartnerDescription> > </PartnerRoleDescription> > </fromRole> > <toRole> > <PartnerRoleDescription> > <GlobalPartnerRoleClassificationCode>Product Information > Distributor</GlobalPartnerRoleClassificationCode> > <PartnerDescription> > > <GlobalPartnerClassificationCode>100000003</GlobalPartnerClassificationC ode> > <BusinessDescription> > <GlobalBusinessIdentifier>Product Information > Distributor</GlobalBusinessIdentifier> > <GlobalSupplyChainCode>Electronic > Components</GlobalSupplyChainCode> > </BusinessDescription> > </PartnerDescription> > </PartnerRoleDescription> > </toRole> > <thisDocumentGenerationDateTime> > <DateTimeStamp>timeStamp</DateTimeStamp> > </thisDocumentGenerationDateTime> > <thisDocumentIdentifier> > > <ProprietaryDocumentIdentifier>unnumbered</ProprietaryDocumentIdentifier > > </thisDocumentIdentifier> > <GlobalDocumentFunctionCode>Request</GlobalDocumentFunctionCode> > </Pip2A9ECTechnicalInformationQuery> > > > ---------------------------- MIME PART ------------------------ > > -- > Best regards, > Michael mailto:[EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>