Skip to main content

Posts

Showing posts from March, 2018

Biztalk - XSLT Looping sample

<xsl:template name="idTemplate">    <xsl:element name="MRooms_UserId">       <xsl:template match="/s0:RESPONSE">          <xsl:for-each select="/s0:MULTIPLE/s0:SINGLE">          <xsl:if test="string(s0:KEY/@name)='id'"/> <xsl:value-of select="s0:KEY/s0:VALUE/text()"/>    </xsl:if>   </xsl:for-each>       </xsl:template>    </xsl:element> </xsl:template> <xsl:template name="idTemplate">    <xsl:element name="MRooms_UserId">          <xsl:for-each select="/s0:RESPONSE/s0:MULTIPLE/s0:SINGLE/s0:KEY">          <xsl:if test="string(@name)='id'"> <xsl:value-of select="s0:VALUE/text()"/>    </xsl:if>          </xsl:for-each>    </xsl:element> </xsl:template>

Biztalk Mapping using XLST

<xsl:template name="idTemplate">    <xsl:element name="MRooms_UserId">          <xsl:for-each select="/s0:RESPONSE/s0:MULTIPLE/s0:SINGLE/s0:KEY">          <xsl:if test="string(@name)='id'"> <xsl:value-of select="s0:VALUE/text()"/>    </xsl:if>          </xsl:for-each>    </xsl:element> </xsl:template>

Ubuntu - Running downloaded installer at ADMIN Level (SU)

Running downloaded installer at admin level: mccrazy@Lenovo-N22:~$ sudo su [sudo] password for mccrazy: root@Lenovo-N22:/home/mccrazy# cd Downloads/ root@Lenovo-N22:/home/mccrazy/Downloads# sudo nautilus (nautilus:3243): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. ** (nautilus:3243): CRITICAL **: Another desktop manager in use; desktop window won't be created ** (nautilus:3243): WARNING **: Couldn't save the desktop metadata keyfile to disk: Failed to create file '/root/.config/nautilus/desktop-metadata.7MLMFZ': No such file or directory Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory Please ...

Biztalk : Dynamic send port - Cannot send a content-body with this verb-type.

PROBLEM: The adapter failed to transmit message going to send port "Baliw.Moodlerooms.Orchestrations_1.0.0.0_Baliw.Moodlerooms.Orchestrations.MRooms_Step05_GwUpdateMoodleroomsRecords_Send_core_user_get_users_REST_Port_09f60f0ba54e5da0" with URL " https://baliw-sandbox.mrooms.net/webservice/rest/server.php?wstoken=OUR_TOKEN&wsfunction=core_user_get_users&moodlewsrestformat=xml&criteria[0][key]=email&criteria[0][value]=araguiam@yahoo.com ". It will be retransmitted after the retry interval specified for this Send Port. Details:"System.Net.ProtocolViolationException: Cannot send a content-body with this verb-type. RESOLUTION: Apply Custome Pipeline on Send Port         public IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)         {             MemoryStream output = new MemoryStream();             output.Position = 0;             pInMsg.BodyPart.Data = output;             return pInMsg;         }

Biztalk : Dynamic Send Port - The provided URI scheme 'https' is invalid; expected 'http'.

PROBLEM: The adapter failed to transmit message going to send port "Baliw.Moodlerooms.Orchestrations_1.0.0.0_Baliw.Moodlerooms.Orchestrations.MRooms_Step05_GwUpdateMoodleroomsRecords_Send_core_user_get_users_REST_Port_09f60f0ba54e5da0" with URL " https://baliw-sandbox.mrooms.net/webservice/rest/server.php?wstoken=OUR_TOKEN&wsfunction=core_user_get_users&moodlewsrestformat=xml&criteria[0][key]=email&criteria[0][value]=aauiam@yahoo.com ". It will be retransmitted after the retry interval specified for this Send Port. Details:"System.ArgumentException: The provided URI scheme 'https' is invalid; expected 'http'. RESOLUTION: From : Msgcore_user_get_users_REST_transmit(WCF.SecurityMode) = "None"; To: Msgcore_user_get_users_REST_transmit(WCF.SecurityMode) = "Transport";

fb-rpi3-sms : FB Messenger integration with Rasberry Pi 3 and a local SMS Provider

mccrazy@Lenovo-N22:~/Documents/proyekto/heroku$ mkdir fb-rpi3-sms mccrazy@Lenovo-N22:~/Documents/proyekto/heroku$ cd fb-rpi3-sms/ mccrazy@Lenovo-N22:~/Documents/proyekto/heroku/fb-rpi3-sms$ git init Initialized empty Git repository in /home/mccrazy/Documents/proyekto/heroku/fb-rpi3-sms/.git/ mccrazy@Lenovo-N22:~/Documents/proyekto/heroku/fb-rpi3-sms$ heroku git:remote -a fb-rpi3-sms set git remote heroku to https://git.heroku.com/fb-rpi3-sms.git mccrazy@Lenovo-N22:~/Documents/proyekto/heroku/fb-rpi3-sms$ rvm use --create --rvmrc 2.2.6@fb-rpi3-sms ruby-2.2.6 - #gemset created /home/mccrazy/.rvm/gems/ruby-2.2.6@fb-rpi3-sms ruby-2.2.6 - #generating fb-rpi3-sms wrappers.......... Using /home/mccrazy/.rvm/gems/ruby-2.2.6 with gemset fb-rpi3-sms mccrazy@Lenovo-N22:~/Documents/proyekto/heroku/fb-rpi3-sms$ cd .. mccrazy@Lenovo-N22:~/Documents/proyekto/heroku$ cd fb-rpi3-sms/ You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers, yo...

Moodlerooms Webservice - How to insert a user using function core_user_create_users

https://our-sandbox.mrooms.net/webservice/rest/server.php?wstoken=OUT_TOKEN_HERE&wsfunction=core_user_create_users&moodlewsrestformat=xml&users [0][username]= biboyatienza@gmail.com &users[0][password]=00.00.0000&users[0][firstname]=biboy&users[0][lastname]=atienza&users[0][email]= biboyatienza@gmail.com &users[0][city]=Manila&users[0][country]=Philippines &users[0][customfields][0][type]= customer &users[0][customfields][0][value]=Customer1 &users[0][customfields][1][type]= customeremail &users[0][customfields][1][value]= customer@email.com &users[0][customfields][2][type]= customerphone &users[0][customfields][2][value]=+6325217788