Biztalk custom send pipeline Using memory stream

Hi friends,
I developing the custom send pipeline,I am calling the custom helper class.The helper class I am using the Memory stream.
The helper class method is looks like:
public MemoryStream UpdateProcess(MemoryStream ms)
In the pipeline i need to call this method 
 public IBaseMessage Execute(IPipelineContext pc, IBaseMessage inmsg)
                    //To get Incoming message
            System.IO.Stream originalStream = inmsg.BodyPart.GetOriginalDataStream();
            //Working with XDocument
            XDocument xDoc;
            using (XmlReader reader = XmlReader.Create(originalStream))
                reader.MoveToContent();
                xDoc = XDocument.Load(reader);
            // Returning stream
            byte[] output = System.Text.Encoding.ASCII.GetBytes(xDoc.ToString());
            MemoryStream memoryStream = new MemoryStream();
            memoryStream.Write(output, 0, output.Length);
            ProcessHelper mf = new ProcessHelper();
            mf.UpdateProcess(memoryStream);
            memoryStream.Position = 0;
            inmsg.BodyPart.Data = memoryStream;
            return inmsg;
            catch (Exception ex)
                throw ex;
            finally
                if (parms != null)
                    parms.Clear();
            return inmsg;
Can you can any one let me know i am doing correct logic in pipeline component.
Thanks
hk
hk

Realistically, we can say for sure if it's right since we don't know the implementation of the helper.
However, since it looks like the helper expects a MemoryStream with Xml content, you can probably just copy the data from the original stream to the local MemoryStream.  Passing it through an XmlDocument might be unnecessary.
Also, unless you are absolutely sure the source document is ASCII, you shouldn't use ASCII encoding since you can loose meaningful character data.

Similar Messages

  • Biztalk Custom Send Pipeline Error

    Hello Experts,
    I have been trying to work with the Custom Send Pipeline, which picks up the .xml file which has the path directory of the file needs to be sent to the destination. I used the code from 
    here to practice how it works
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Microsoft.BizTalk.Message.Interop;
    using Microsoft.BizTalk.Component.Interop;
    using System.IO;
    namespace Sample.SndLargeFiles
    [ComponentCategory(CategoryTypes.CATID_PipelineComponent)]
    [ComponentCategory(CategoryTypes.CATID_Encoder)]
    [System.Runtime.InteropServices.Guid("52dcc4e5-28e1-49a2-81fd-de496ac80fe8")]
    public class SampleSndLargeFiles : IBaseComponent, IComponentUI, IComponent
    #region IBaseComponent Members
    public string Description
    get
    return "Send Large Files to destination reading from disk";
    public string Name
    get
    return "SampleSndLargeFiles";
    public string Version
    get
    return "1.0.0.0";
    #endregion
    #region IComponentUI Members
    public IntPtr Icon
    get
    return new System.IntPtr();
    public System.Collections.IEnumerator Validate(object projectSystem)
    return null;
    #endregion
    #region IComponent Members
    public IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)
    // Read filepath from the context properties
    string largeFilePath = pInMsg.Context.Read("LargeFilePath", "https://SamplePL.PropertySchema").ToString();
    // Read file from disk
    int bufferSize = 1024;
    FileStream fs = new FileStream(largeFilePath, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize);
    if (fs.CanSeek)
    fs.Position = 0;
    pInMsg.BodyPart.Data = fs;
    return pInMsg;
    #endregion
    I am getting error when I am trying to use in my send Port
    "Reason: Object reference not set to an instance of an object.  "
    I have checked GAC and restarted the host instances after deploying the pipeline but nothing helps.Any help is greatly appreciated.Thanks

    Johns,
    If I debug the orginal code it shows
    "An exception of type 'System.NullReferenceException' occurred in Jax.Dhana.SndLargeFiles.dll but was not handled in user code
    Additional information: Object reference not set to an instance of an object."
    in the below line
    string largeFilePath = pInMsg.Context.Read("LargeFilePath", "https://SamplePL.PropertySchema").ToString()
    If I change the code to
    string largeFilePath = System.String.Empty;
    object propVal = pInMsg.Context.Read("LargeFilePath", "https://SamplePL.PropertySchema");
    if (propVal != null) {
    largeFilePath = (System.String) propVal;
    I am seeing "Empty path name is not legal" on the below line,
    FileStream fs = new FileStream(largeFilePath, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize);

  • C# Playing Video From A Memory Stream Using DirectShow (quartz.dll).

    I have a C# Visual Studio WinForms app that plays video using the QuartzTypeLib (quartz.dll). With the code I've written, I can play any video file from the hard drive. Here's the code at the top that executes when the app starts:
            public const int WS_CHILD = 0x40000000;
            public const int WS_CLIPCHILDREN = 0x2000000;
            public QuartzTypeLib.IMediaControl mc;
            public QuartzTypeLib.IVideoWindow videoWindow = null;
            IMediaPosition mp = null;
    And here's the code that opens the video file:
            private void openMediaToolStripMenuItem_Click(object sender, EventArgs e)
                // Open a media file.
                OpenFileDialog ofd = new OpenFileDialog();
                ofd.Filter = "Video Files|*.mpg;*.avi;*;*.wmv;*.mov";
                ofd.FilterIndex = 1;
                if (DialogResult.OK == ofd.ShowDialog())
                    // Stop the playback for the current movie if a video is currently playing.
                    if (mc != null)
                        mc.Stop();
                    if (pbVideoDisplay.Image != null)
                        pbVideoDisplay.Image = null;
                    // Load the movie file.
                    FilgraphManager graphManager = new FilgraphManager();
                    graphManager.RenderFile(ofd.FileName);
                    mp = graphManager as IMediaPosition;
                    mc = (IMediaControl)graphManager;
                    tsbtnPlay.Enabled = tsbtnPause.Enabled = tsbtnStop.Enabled = true;
                    // Attach the view to the picture box (pbVideoDisplay) on frmMain.
                    try
                        videoWindow = (IVideoWindow)graphManager;
                        videoWindow.Owner = (int)pbVideoDisplay.Handle;
                        videoWindow.WindowStyle = WS_CHILD | WS_CLIPCHILDREN;
                        videoWindow.SetWindowPosition(
                        pbVideoDisplay.ClientRectangle.Left,
                        pbVideoDisplay.ClientRectangle.Top,
                        pbVideoDisplay.ClientRectangle.Width,
                        pbVideoDisplay.ClientRectangle.Height);
                    catch //(Exception Ex)
                        // I'll write code for this when I have a need to.
                    // Now we convert the video to a byte array.
                    FileStream fs = new FileStream(ofd.FileName, FileMode.Open, FileAccess.Read);
                    try
                        // Here we convert the video to Base 64.
                        VideoInBytes = new byte[fs.Length];
                        VideoInBytes = System.Text.Encoding.UTF8.GetBytes(ofd.FileName);
                        VideoInBase64 = Convert.ToBase64String(VideoInBytes);
                    catch //(Exception Ex)
                        //throw new Exception("Error in base64Encode" + Ex.Message); Worry about this later.
    Notice that I have code that converts the video to a Base64 string. I'd like to add code that will allow me to play a video from a memory stream or any other type of stream that might work better. Is that even possible and if so, what code would I need to add
    and where would I put it?

    You should be able to do it by developing a plug-in for the existing DShow filter. For instance, wmv files are being opened/read with the "WM ASF Reader" filter. You can register your own protocol and implement your own plug-in for that protocol
    (e.g. you could name it 'memory', and your URL would look like
    memory://something.wmv). You can register your protocol under the [HKEY_CLASSES_ROOT\memory\Extensions] by creating a new string value with the file extension as a name (.wmv). The value is the WM ASF Readers's
    GUID ({187463A0-5BB7-11D3-ACBE-0080C75E246E}).
    You also need to register your plugin that will be used for a wmv file when used with the 'memory' protocol.
    In [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Media\WMSDK\sources] create a new string value with the protocol name and the value is a path to you DLL plug-in. Your plug-in must implement the IStream interface. The plugin DLL exports a single function:
    HRESULT WMCreateStreamForURL( LPCWSTR pwszURL, BOOL *pfCorrectSource, IStream **ppStream )
    MSDN can provide more info on WMCreateStreamForURL() and plugins in general.
    Once you do that, what will happen is this: each time you open a file like "memory://myfile.wmv", the WM ASF Reader filter will load your plugin, call WMCreateStreamForURL() and it will use your custom IStream object for all read/write operations.

  • WCF static send port, use of custom behavior to change the endpoint location?

    The send port is outbound to various web service endpoints, all of which is the same WSDL just different location. Prefer to use the static port for features like ordered delivery. Is it possible to change the Microsoft.XLANGs.BaseTypes.Address dynamically
    by a custom behavior?
    https://ninithepug.wordpress.com/

    Hi,
    You can make static send ports partially dynamic, this can be achieved in a custom pipeline component in the send pipeline.
    You should refer to the below mentioned articles:
    Adding dynamic behavior to static send ports
    Using a Static Send Port like a Dynamic Send Port
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • BizTalk Send Pipeline Error 0xc0c01658

    Hello,
    I created a Send Pipeline that has a Flat File Assembler. When I tried to send the Message I am getting error like, Error Code 0xc0c01658 (Send Pipeline Error)
    The detail of the error,
    There was a failure executing the send pipeline. Please verify that the pipeline strong name is correct and that the pipeline assembly
    can anyone help me, I am new to BizTalk and I am learning
    Thanks

    I tried doing it Johns but still shows the same error.
    Does file go though if you put pass thru pipeline? If so it means everything else in project is working ok.
    After that, check if your project containing pipeline builds ok and is in GAC.
    Add your pipeline in send port again.Restart host instances, and stop/start your application if that helps?

  • CRLF in the XML - Send Pipeline

    Hello,
    I have a requirement to send a XML message via biztalk to a third party.
    In the Send pipeline, i need to do a processing where by a specific node in the xml,
    value needs to be replaced with a constant. so i wrote a custom pipeline component that exposes xpath property.
    The pipeline will take the xml document and based on the xpath configured, will replace the node's
    content with a constant.
    This was working all good until we hit an xml that had an empty tag.
    <Employee>
      <FirstName>tt</FirstName>
      <LastName>tt</LastName>
      <Salary>100</Salary>
      <PrevRecord/>
    </Employee>
    The destination system wants us the pass this PrevRecord as empty.
    But the pipeline seems to add a CRLF to the PrevREcord node,
    so that it appears as <PrevRecord>
                            </PrevRecord>
    My pipeline code is as below:
    Would anyone be able to assist on this one please?why the code is adding a CRLF to the PrevRecord tag?
            public IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)
                if (!Enabled)
                    return pInMsg;
                   System.IO.Stream memStream = new System.IO.MemoryStream();
                    IBaseMessagePart bodyPart = pInMsg.BodyPart;
                    if (bodyPart != null)
                        Stream originalStream = bodyPart.GetOriginalDataStream();
                        if (originalStream != null)
                            System.Xml.XmlDocument xdoc = new System.Xml.XmlDocument();
                            xdoc.Load(originalStream);
                            System.Xml.XmlNode Node = xdoc.SelectSingleNode(XpathforInstanceID);
                            if (Node != null)
                                Node.InnerText = "MOCK";
                            xdoc.Save(memStream);
                            memStream.Position=0;
                            bodyPart.Data = memStream;
                            pContext.ResourceTracker.AddResource(memStream);
                  return pInMsg;
    thanks

    In your code use something like this as boatseller suggested:
    System.Xml.XmlDocument xdoc = new System.Xml.XmlDocument();
    //Add the following line after declaring the XMLDoc object
    xdoc.PreserveWhitespace = false;
    Having said this, I would not use XMLDocument for your purpose. The amount of space required by an instance of the XmlDocument class to load and create an in-memory representation of a XML document is up to 10 times the actual message size. Use XPathReader
    for this purpose and construct the message streaming based.
    http://msdn.microsoft.com/en-us/library/ee377071.aspx
    You can this article as reference to create a stream based pipeline component using XPathReader for your purpose:
    http://blogs.technet.com/b/meamcs/archive/2011/11/17/extracting-biztalk-messages-content-using-xpath-in-custom-pipeline-components.aspx
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Issue with custom receive Pipeline component

    I have been facing issue with creating a custom receive pipeline component. The Pipeline is to receive large file, if the file size is large it has to read the incoming stream to a folder and pass only some meta data through the MessageBox. The Execute method
    I am using is,
    #region IComponent Members
    public IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)
    if (_largeFileLocation == null || _largeFileLocation.Length == 0)
    _largeFileLocation = Path.GetTempPath();
    if (_thresholdSize == null || _thresholdSize == 0)
    _thresholdSize = 4096;
    if (pInMsg.BodyPart.GetOriginalDataStream().Length > _thresholdSize)
    Stream originalStream = pInMsg.BodyPart.GetOriginalDataStream();
    string largeFilePath = _largeFileLocation + "\\" + pInMsg.MessageID.ToString() + ".zip";
    FileStream fs = new FileStream(largeFilePath, FileMode.Create);
    // Write message to disk
    byte[] buffer = new byte[1];
    int bytesRead = originalStream.Read(buffer, 0, buffer.Length);
    while (bytesRead != 0)
    fs.Flush();
    fs.Write(buffer, 0, buffer.Length);
    bytesRead = originalStream.Read(buffer, 0, buffer.Length);
    fs.Flush();
    fs.Close();
    // Create a small xml file
    string xmlInfo = "<ns0:MsgInfo xmlns:ns0='http://SampleTestPL.SchemaLocation'><LargeFilePath>" + largeFilePath + "</LargeFilePath></ns0:MsgInfo>";
    byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(xmlInfo);
    MemoryStream ms = new MemoryStream(byteArray);
    pInMsg.BodyPart.Data = ms;
    return pInMsg;
    #endregion
    Here I want the xml to be dropped in to the File share Eg: E:\Dropbox\PL\send and and the entire message to be dropped in the folder Eg: E:\Dropbox\sendLarge. so in the ReceivePipeline properties i set like
    And in the send port the destination i give is E:\Dropbox\PL\send.
    The issue is both the xml and the message are getting dropped in to the same folder E:\Dropbox\PL\send and the message is not getting dropped in E:\Dropbox\SendLarge. Any help is greatly appreciated.

    using System;
    using System.Collections.Generic;
    using System.Text;
    using Microsoft.BizTalk.Message.Interop;
    using Microsoft.BizTalk.Component.Interop;
    using System.IO;
    namespace Sample.ReceivePipelineLargeFile
    [ComponentCategory(CategoryTypes.CATID_PipelineComponent)]
    [ComponentCategory(CategoryTypes.CATID_Decoder)]
    [System.Runtime.InteropServices.Guid("53fd04d5-8337-42c2-99eb-32ac96d1105a")]
    public class ReceivePipelineLargeFile : IBaseComponent,
    IComponentUI,
    IComponent,
    IPersistPropertyBag
    #region IBaseComponent Members
    public string Description
    get
    return "Pipeline component used to receive large file and save it ina disk";
    public string Name
    get
    return "ReceivePipelineLargeFile";
    public string Version
    get
    { return "1.0.0.0";
    #endregion
    #region IComponentUI Members
    public IntPtr Icon
    get
    return new System.IntPtr();
    public System.Collections.IEnumerator Validate(object projectSystem)
    return null;
    #endregion
    #region IPersistPropertyBag Members
    private string _largeFileLocation;
    private int _thresholdSize;
    public string LargeFileLocation
    get { return _largeFileLocation; }
    set { _largeFileLocation = value; }
    public int ThresholdSize
    get { return _thresholdSize; }
    set { _thresholdSize = value; }
    public void GetClassID(out Guid classID)
    classID = new Guid("B261C9C2-4143-42A7-95E2-0B5C0D1F9228");
    public void InitNew()
    public void Load(IPropertyBag propertyBag, int errorLog)
    object val1 = null;
    object val2 = null;
    try
    propertyBag.Read("LargeFileLocation", out val1, 0);
    propertyBag.Read("ThresholdSize", out val2, 0);
    catch (ArgumentException)
    catch (Exception ex)
    throw new ApplicationException("Error reading PropertyBag: " + ex.Message);
    if (val1 != null)
    _largeFileLocation = (string)val1;
    if (val2 != null)
    _thresholdSize = (int)val2;
    public void Save(IPropertyBag propertyBag, bool clearDirty, bool saveAllProperties)
    object val1 = (object)_largeFileLocation;
    propertyBag.Write("LargeFileLocation", ref val1);
    object val2 = (object)_thresholdSize;
    propertyBag.Write("ThresholdSize", ref val2);
    #endregion
    #region IComponent Members
    public IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)
    if (_largeFileLocation == null || _largeFileLocation.Length == 0)
    _largeFileLocation = Path.GetTempPath();
    if (_thresholdSize == null || _thresholdSize == 0)
    _thresholdSize = 4096;
    if (pInMsg.BodyPart.GetOriginalDataStream().Length > _thresholdSize)
    Stream originalStream = pInMsg.BodyPart.GetOriginalDataStream();
    string largeFilePath = _largeFileLocation + "\\" + pInMsg.MessageID.ToString() + ".zip";
    FileStream fs = new FileStream(largeFilePath, FileMode.Create);
    // Write message to disk
    byte[] buffer = new byte[1];
    int bytesRead = originalStream.Read(buffer, 0, buffer.Length);
    while (bytesRead != 0)
    fs.Flush();
    fs.Write(buffer, 0, buffer.Length);
    bytesRead = originalStream.Read(buffer, 0, buffer.Length);
    fs.Flush();
    fs.Close();
    // Create a small xml file
    string xmlInfo = "<ns0:MsgInfo xmlns:ns0='http://SampleTestPL.SchemaLocation'><LargeFilePath>" + largeFilePath + "</LargeFilePath></ns0:MsgInfo>";
    byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(xmlInfo);
    MemoryStream ms = new MemoryStream(byteArray);
    pInMsg.BodyPart.Data = ms;
    return pInMsg;
    #endregion
    Thanks Osman Hawari, for trying to help me out.

  • Dynamically assign a send pipeline to a dynamic send port in orchestration

    Hi
    I have an orchestration that is using a dynamic send port. I need to somehow assign the send pipeline to the dynamic send port programmatically.
    for example, I will have a decide shape in the orchestration. Based on the condition in the decide shape I need to assign the corresponding send pipeline for that condition. let's say in Branch A, I want to select xml assembler , in Branch B I will want
    to select a flat file assembler...
    how can this be achieved. I have seen some links recommending using the ESB tool kit, but I do not want to go down that route.
    any help is appreciated
    Regards, Mazin - MCTS BizTalk Server 2006

    Ashwin
    Thanks again for your reply.
    If I do it using role links I will loose the flexibility I have "having a dynamic file name" lots of our partners would like to receive their files with specific file naming convention based on the content of the file.
    If I use a decide shape / another dynamic send port, this means that everytime I have a new custom pipeline I would need to modify the orchestration and add another decide branch with another dynamic send port.
    both of the above suggestions will break the flexibility of the solution since we now can configure new partners in seconds in the configuration database without the need to modify the orchestration or add any new send ports
    Regards, Mazin - MCTS BizTalk Server 2006
    So in your requirement, the “dynamic” nature you want from send port are
     following:
    To set the send file names dynamically depends on the message received.
    To send the message to different send locations depending on the message received. You want to retrieve this destination URL location from database.
    And send ports may have different pipeline component like flat-file and XML ones.
    As I have commented in my earlier reply, Role-Link could fit your bill perfectly and this can be achieved by using following:
    1) Receive a message into an Orchestration.
    2) In Orchestration set the file name dynamically based on the received file and following code shall help you to set the name of the file to dynamic. 
    msgToBeSend(FILE.ReceivedFileName)="YourDynamicFileNameUWantToAssign";
    Use the above while constructing the outgoing message.
    3) Create a “Provider” Role-Link with send port type following the wizard.
    4) In Orchestration’s expression shape may be before sending the message out,
    performs the party resolution using a code similar to the following:  
    YourRoleLinkName(Microsoft.XLANGs.BaseTypes.DestinationParty) = new Microsoft.XLANGs.BaseTypes.Party(msgToBeSend.YourDistingushedPropertyToIdentifyParty, "OrganizationName");
    5) In the above sample code “YourDistingushedPropertyToIdentifyParty” refer for the code which could identify the partyname where the send port is configured.
    6) Create Parties representing different type of message to be send like flat-file or XML messages.
    7) Create a static send port and populate the outbound URL dynamically by using a custom pipeline component. In the custom pipeline component URL can be dynamically bound by calling the database as per your reqirement i.e based on the received message by
    accessing its content in custom pipeline access the database, find the destination URL and assign the “OutboundTransportLocation” context property of the outbound message something like this 
    msgToBeSend.Context.Promote("OutboundTransportLocation", "http://schemas.microsoft.com/BizTalk/2003/system-properties", YourOutboundURLFromDatabase);
    Refer this article on this topic:
    http://www.codit.eu/blog/2013/03/06/adding-dynamic-behavior-to-static-send-ports-a-caveat/
    8) In the Parties you have created assign the send ports.
    9) GoTo your “Role-Links” folder within the deployed BizTalk application and enlist the parties.
    These steps enable you to achieve the dynamic requirement you want to implement with the mentioned Role-Link.
    Regards,
    M.R.Ashwin Prabhu
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • File or Memory Stream Access through Flex

    Dear all
    I create a desktop sharing application that is written in Flex. For desktop sharing I have a component that generates a series of images of a selected screen area, where only the changed screan areas will be transmitted. I would like to pass these images to flex/flash player to send it eihter over P2P or a Flash Media Server to the listening clients. My question is:
    - Can Flex/Flash attach to a memory stream object that is generated in a C++ component? Does a bridge exist here that is performant enough?
    - if this bridge is not possible, can Flex/Flash read from files of the hard disk? As far as I know a local-trusted sandbox is needed. How does this look like?
    Thanks in advance for your help,
    Marc

    hi,
    If you want a true desktop application you can use Flex and compile it to a native desktop application using Air. If you Want to read local files from the hard disk and upload them you can do this with a normal flex/flashplayer 10 browser application. There is no restriction on what data files you can open.
    The following flex app opens images on the local drive and displays them, just to give you an idea of local file access from a browser app.
    http://gumbo.flashhub.net/pagedrop/ -source included

  • How to play SWF with AxShockwaveFlash control using a stream rather than a file path?

    My WinForm app downloads and plays SWF files from my server. Currently, I have an object of type AxShockwaveFlash called "flash" display the movie. The code I use to load the SWF is:
    flash.Movie = "http://example.com/file.swf"
    The URL is generated dynamically by the module based on what the user wants to watch.  I'd like to know how can I load the SWF using a memory stream rather than a file path? I have already configured my server to process the url and return the contents
    of the file. What I don't know is how to read those contents within my WinForm application as a stream instead of the default which is to just provide a URL path to the movie.
    For instance I think I can use the Net.HttpWebRequest object to make an HTTP request, and read the response contained in the resulting Net.HttpWebResponse into a stream, but I have no idea what I could do to that stream to feed it to AxShockwaveFlash
    A very similar question was posed on
    stackOverflow but I cannot make sense of the answer (I'm quite inexperienced).
    I'd appreciate your help,
    -Patrick

    Hi Patrick,
    Since this issue is mainly related to a control which belongs to third-party, I would recommend you consider posting this issue on the same site like the following thread because issues related to third-party are not supported.
    https://forums.adobe.com/thread/717505?tstart=0
    Regards.
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I send email using two different email address that both link back to my one exchange account on my Ipad mini

    How can I send email using two different email address that both link back to my one exchange account on my Ipad mini? 
    On my PC I simply have a master return email address and use a POP for the secondary address.  Both are through the one exchange account without a problem.  I need to be able to do the same on my Ipad.

    Ah, I should have made that clear.  My domain didn't come from google.  It was purchased at and is hosted at dreamhost, but I haven't used their email servers in years - I just route everything through gmail.  I actually have a bunch of domains (with websites).
    Gmail has an option that lets someone with custom domains send (and receive) email through gmail using the custom domain once Google confirms proper ownership of the domain (to prevent spammers and such).  Gmail has a setting for "send email as" which allows gmail to be sent using a custom domain as the sender.  I'm pretty sure Apple's old mobileme had this feature too, but I didn't use it.

  • IPhone cannot send email using Yahoo account. iPhone no envia correo Yahoo.

    Hi Everyone,
    I just got my iPhone from Movistar Venezuela and I've found I'm unable to send email using my Yahoo account. However, I can receive Yahoo email just fine (paid $20 for Mail Plus subscription), my GMail account can send and receive perfectly, and I can go surfin' Safari with no problems too.
    The error message I get is "Cannot send mail: an error occurred while delivering this message". I called Movistar Customer Support and they said everything was fine on their end...
    In typical Apple fashion, the error message is so simple I have no idea where the problem is. Does anyone know how can I get more information and how to solve this annoying problem? My Yahoo account is actually my primary account...
    Thanks in advance!
    Saludos a todos,
    Acabo de comprarme un iPhone de Movistar en Venezuela y me encuentro sin poder enviar emails con mi cuenta Yahoo. Sin embargo, si puedo recibir correo Yahoo bien (pague $20 por mi suscripcion a Mail Plus), mi cuenta de GMail si puede enviar y recibir email sin problema y puedo navergar con Safari sin ningun problema.
    El mensaje de error que recibo es el siguiente": "No se puede enviar correo: se ha producido un error al enviar el mensaje". Llame a Atencion al Cliente de Movistar y me dijeron que no habia ningun problema con mi linea o con su servicio de datos...
    Como tipica cosa Apple, el mensaje de error es tan simple que no tengo NI IDEA de cual es el problema. Alguien mas ha sufrido este problema? Sabe alguien como puedo obtener mas informacion de este error y como solucionarlo? Lamentablemente, mi cuenta Yahoo es mi correo principal...
    Gracias de antemano!

    Creo que resolvi el problema, temporalmente.
    1) Borra tu cuenta
    2) Vuelvela a crear
    3) Ve a Ajustes
    4) Ve a Mail Contactos Calendarios
    5) Ve a la cuenta problematica
    6) Ve a SMTP
    7) Anadir nuevo
    8)
    Nombre servidor: smtp.mail.yahoo.com
    Nombre de usuario: no dejar vacio
    Contrasena: no dejar vacio
    Usar SSL: si
    Autenticacion: Contrasena
    Puerto del Servidor: 25
    Lo consegui de aqui: http://www.emailaddressmanager.com/tips/mail-settings.html
    Dime que tal te funciona.
    I think I solved the issue, temporarily at least
    1) Delete account
    2) Create again
    3) Go to settings
    4) Go to Mail, Contacts, Calendars
    5) Open problematic account
    6) Go to SMTP
    7) Add a new server
    8)
    Name: smtp.mail.yahoo.com
    User name: do not leave blank
    Password: do not leave blank
    SSL: Yes
    Autentication: Password
    Port: 25
    I got this info from: http://www.emailaddressmanager.com/tips/mail-settings.html
    Let me know how this works

  • Cannot send message using the server (null)

    i use mail 2.1.
    i have a .mac account and have three other email accounts attached to my mail account.
    lately, i cannot send any email.
    the switchiing ports fix hasn't helped either.
    this is the error message:
    CANNOT SEND MESSAGE USING THE SERVER (null)
    The server response was: 5.1.0 <email [email protected]>...
    From address does not match authentication.
    Use the pop-up menu below to try a different outgoing mail server. All messages will use this server until you quit Mail or change your network settings.
    Message from: email <[email protected]>
    Send message using: [there is a combo box here with all the four accounts servers listed]
    no matter which one i pick it doesn't work and no email is sent.
    anyone have this error before? or now how to fix it?
    i'd be appreciative.
    thanks
    1.67 GHz Power PC PowerBook G4   Mac OS X (10.4.6)   Sony HDR HC3 HD HandyCam MiniDV

    I was having a similar problem (don't feel like typing all the details)
    I was about to to delete my com.apple.mail.plist, when finally it hit me.
    I ran ethereal (again, I'm sorry, but learning how to use ethereal is a topic unto itself). Following the TCP stream (ie. looking at the smtp messages being sent back and forth) I came across two problems. For some reason my port number was set to 567 or something like that, when it's supposed to be 25, as I had originally set it to.
    Once I corrected the port number I started receiving an error message from the smtp server. It said the return email address could not be authenticated. (using xyz.com as an example) The correct return email address was supposed to be [email protected], but for some reason it was changed to john@xyz in the account settings.
    Anyway, to get to the point, another thing to check is that your return address has been set correctly, and if all else fails, make sure you have X11 installed and use fink to install and run ethereal. This will let you know if you are actually connecting to the server, and will show you any error messages.
    PS. I think this problem started occurring with the last update made to mail. I believe it somehow corrupted my settings. This would explain how my port number could have been changed to the default port number of .mac mail.

  • Customer -master upload using bapi

    hai ..
      can any body send me some example for customer master  creation using bapi ..
      in this account -group is mandatary..
    but i did.nt find  acc-group in bapi structures ..
    plz do helpful ..
    Tanx in advance ..

    Hi,
    Check the below links.
    [http://abaplovers.blogspot.com/2008/03/customer-master-bapis-function-modules.html|http://abaplovers.blogspot.com/2008/03/customer-master-bapis-function-modules.html]
    [http://abap.wikiprog.com/wiki/BAPI_CUSTOMER_CREATEFROMDATA1|http://abap.wikiprog.com/wiki/BAPI_CUSTOMER_CREATEFROMDATA1]
    Reward if found helpful.
    Regards,
    Boobalan Suburaj

  • How to render PDF in InfoPath whose source is a memory stream

    I'm struggling to interface InfoPath calling a Web service that generates a PDF and rendering the PDF for the user.
    The document workflow is:
    Using InfoPath (using both the fat client and browser client), display a form for the user to complete.
    Collect the entered information and call the Opus Web Service (Elixir) to render a PDF.
    The PDF is sent back to InfoPath through the web service call.
    Open the PDF for the user and provide them the ability to review and/or print the document.
    It's this last step that's causing the problems -- It's no problem when this is all part of a web page. This work flow is used for thousands of PDF reviews via web pages daily.  However, because I have to use InfoPath, I'm struggling to find an easy solution.  I can't write the returned data to disk and open the document because the InfoPath Browser is really tied into SharePoint and I don't want to store temporary PDF files on the SharePoint server.
    My issue is : How to render a PDF document that is sourced as a memory stream.
    I'm down to a couple of possible solutions and have some questions:
    1) I looked at writing a plug-in to support another ASFileSys interface which would be used to read from memory instead of from disk. But I don't see a way to invoke my plug-in through an API.  Is this possible?
    2) I looked at the OLE interfaces, but didn't see a nice way to pass a document in through memory.  Is there an interface that accomplishes this task?
    3) I did see that I could create a compound document in memory and then call the OLE interfaces.  Has anyone done this and is it maintainable ? 
    4) The OLE format also lends itself to placing the PDF inside of an RTF to display. Seems like a lot of work to put a wrapper around the PDF, but I do think that also alleviates the need to register any components in SharePoint.  Again, has anyone seen this done?
    In the end, none of these seem very straight forward. So I have to ask, am I missing something obvious here? 
    Thanks for your help,
    Chris Andrews

    Infopath has a fat client interface and a browser version where the server is a sharepoint server.  So the web service executes on the local desktop or in the Sharepoint server depending upon which interface is used.  The best way to work on InfoPath solutions is to focus on the fat client solution with a couple of caveats.  Asume that you can't create temp files, and assume that you can't invoke a new application, and that you aren't in an HTTP request/response environment (since Sharepoint is a wrapper around the back end browser interface).  You can invoke code that is in DLLs, OCX, TLB, etc... (typical Active X, or library code).
    Chris

Maybe you are looking for

  • My old PC no longer works but my iTunes account is on it, I don't want or need a new PC so how do I access my account?

    My iTunes account is on my old PC laptop which no longer works so I have no access to update my iPod nano or back up iPhone etc. what can I do?

  • M8496 ERROR FM parked invoice

    Hello, SAPAPPL 606 I have carried forward a PO with all document chain to the year X+1. A "parked invoice" is in the chain with posting date X. I would like to modify that posting date ( to X+1) of the parked document and so a new financial and logis

  • HR ABAP - Reg Payslip development

    Hi Freiends, Could u plz tell How to do payslip development through TCODE: PE51. step by step process. can u plz tell me what is the standard Payslip form name for UK (Great Britan..Country group-08 ). i want to know how to copy and to do modificatio

  • IDOC Issue in LSMW

    I have created lsmw to transfer fixed asset data using BAPI. I have also did inboud configuration for LSMW to post data. When I run start IDOC Generation after convert data step it says " File 'ZASSET_BAPI_ZASSET.lsmw.conv' transferred for IDoc gener

  • [FB4] PHP Data Service - how to use with DB2?

    Hi, I've tried to follow the tutorial that wires a datagrid to a PHP service. However I need to get data from DB2 rather than MySQL. I have created the service and populated an array using db2_fetch_object - the service works as I can call it with a