How to handle not well formed xml on OSB - osb

Hi I am using OSB 11g in my project.
I am receiving some data's that are not XML or there are not well formed.
When my proxy are set to "Messaging service" I am able to handle my receiving data's in JavaCallouts
But .. when I choose "Any XML service" before I handle the receiving data OSB tries to parse the data
and raises error : Failure while unmarshalling message: Failed to parse XML text.
I don't need to parse the data, I just want to check what data I received, guess who is sending
it and just print it into a file.
Is there any way to handle the receiving data when error as a string using "Any XML service" ?

You can choose "messaging service" as service type and "Text" as request message type.
This would prevent OSB from parsing data as XML.
you would be forced to parse the data as String but I see that is no issue for you.

You need to select "message type" as service type. In the proxy message flow use XQuery function "inlineXML()" to retrieve required information.Hope this helps.

Related

Log Logic Apps error messages to Azure storage file

I have some steps in my logic apps eg Parse JSON. If they fail, I can see the reason for the failure when I open the step in logic apps eg string instead of integer.
How can I log these error messages in my Azure storage account.
The dynamic content dialogue box doesn't specify error messages.
I have created a storage account, created files, populated them with a string and put them into the storage account. I just need to get hold of the error message.
I will be processing JSON from HTTP requests. If the JSON is invalid ie does not conform to the expected schema, I need the error logged, so people can query it with the provider of the data.
If you just want to log the runs error message, it is not necessary to be so troublesome. You could just use outputs to implement it.
You set the create blob action run after parse json action fails, the blob content could be outputs('Parse_JSON')['errors'], if just want to get the error message it should be outputs('Parse_JSON')['errors'][0]['message'].

Unable to lookup sp connection metadata

all the configuration tested are correct but still getting this error:
sourceid.config.ConfigurationException: Unable to lookup sp connection metadata for entityid="SP URL"
Set the FULL URL as captured inside the quotes for "SP URL" as a VSID for the connection. This usually means that Entity ID for the partner has not been set to what they are sending (which is the SP URL).
This can be avoided by making the SP provide you with metadata, and you build the connection around it, then export your own metadata, and send to them. If they can't provide you with metadata, then they should get better at SAML.

Mule ESB: How to handle clob type database value in mule?

I am fetching a Clob type value from database in mule flow.
Please let me know how to handle this type of values in a Data Mapper/ Transform message components of mule?
Click here for Mule Flow Image
Hi Jimbou,
I have attached screenshot of my mule flow along with the transformer Message flow, which shows my database column type is clob format.
Let me know if you need any further information.
Thanks
Mitali

ssis web service task error

Hi i am using a web service which is basically use for sending the mail . For this i am using web service task in SSIS and this service input parameter is text message in which i am passing a return XML code from execute sql task. when i run my package it's give me below error:
"The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:strProdUserDataXML. The InnerException message was 'There was an error deserializing the object of type System.String. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 131, position 57.'. Please see InnerException for more details."
One thing i checked if i pass small xml code in text message parameter than it don't gives error.
Please help me how can i increase the size using web service task in ssis

How to read e-mails in a local directory using Java?

I would like to create a java program that would get only the body/message of the mail, the mails are in .eml format and the mails are placed locally in my machine. The problem is when I try to look for ways to do this I'm still lead to use the Folder class which requires an active mail server. Now, my question is, is there any way I can extract the message part of an e-mail using the Javamail API without the need to connect to a server? Because doing the extraction of the message part of an e-mail without including its headers is nearly impossible with filestream.
Thanks for the help.
Cheers!
You can use a "local store provider" for JavaMail, but perhaps the simplest approach for you is to just use the MimeMessage that takes an InputStream. Give it a (buffered) FileInputStream and it will parse the message for you.

Resources